|
Returns the value of the configuration option on success. Failure, such as querying for a non-existent value, will return an empty string.
When querying boolean values: A 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".
When querying memory size values: Many 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 integer equivalent. Attempting normal arithmetic functions on these values will not have otherwise expected results. The example below shows one way to convert shorthand notation into bytes, much like how the PHP source does it.
See also get_cfg_var(), ini_get_all(), ini_restore(), and ini_set().
Poprzedni | Spis treści | Następny |
ini_get_all | Początek rozdziału | ini_restore |
Hosting by: Hurra Communications Sp. z o.o.
Generated: 2007-01-26 18:02:29