ini_get
Returns the value of the configuration option on success.
Parameters
- option
-
The configuration option name.
Return Values
Returns the value of the configuration option as a string on success, or an empty string for null values. Returns false if the configuration option doesn't exist.
Notes
Note:
When querying boolean valuesA boolean ini value of off will be returned as an empty string or "0" while a boolean ini value of on will be returned as "1". The function can also return the literal string of INI value.
Note:
When querying memory size valuesMany ini memory size values, such as upload_max_filesize, are stored in the php.ini file in shorthand notation. ini_get will return the exact string stored in the php.ini file and NOT its int equivalent. Attempting normal arithmetic functions on these values will not have otherwise expected results. The example above shows one way to convert shorthand notation into bytes, much like how the PHP source does it.
Note:
ini_get can't read "array" ini options such as pdo.dsn.*, and returns false in this case.