ReflectionExtension::getINIEntries

(PHP 5, PHP 7)
Gets extension ini entries
public array ReflectionExtension::getINIEntries ( void )

Get the ini entries for an extension.

Returns:

An associative array with the ini entries as keys, with their defined values as values.

Examples:
ReflectionExtension::getINIEntries() example
<?php
$ext = new ReflectionExtension('mysql');

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

The above example will output something similar to:

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
)
See also:

ini_get_all() -

ReflectionExtension::getConstants() -

doc_php
2016-02-24 16:13:30
Comments
Leave a Comment

Please login to continue.