php教程

ReflectionExtension::getINIEntries

(PHP 5, PHP 7)

ReflectionExtension::getINIEntries获取ini配置

说明

public ReflectionExtension::getINIEntries ( void ) : array

获取扩展在ini配置文件中的配置。

参数

此函数没有参数。

返回值

返回一个数组,数组索引是配置名称,值是配置值。

范例

Example #1 ReflectionExtension::getINIEntries() example

<?php
$ext 
= new ReflectionExtension('mysql');

print_r($ext->getINIEntries());
?>

以上例程的输出类似于:

Array
(
    [mysql.allow_persistent] => 1
    [mysql.max_persistent] => -1
    [mysql.max_links] => -1
    [mysql.default_host] => 
    [mysql.default_user] => 
    [mysql.default_password] => 
    [mysql.default_port] => 
    [mysql.default_socket] => 
    [mysql.connect_timeout] => 60
    [mysql.trace_mode] => 
    [mysql.allow_local_infile] => 1
    [mysql.cache_size] => 2000
)

参见

User Contributed Notes

There are no user contributed notes for this page.

CopyRight © 2008-2022 verySource.Com All Rights reserved. 京ICP备17048824号-1 京公网安备:11010502034788