(PHP 4, PHP 5, PHP 7)
get_cfg_var — Gets the value of a PHP configuration option
get_cfg_var ( string $option ) : mixed
Gets the value of a PHP configuration option
.
This function will not return configuration information set when the PHP was compiled, or read from an Apache configuration file.
To check whether the system is using a configuration file, try retrieving the value of the cfg_file_path configuration setting. If this is available, a configuration file is being used.
option
The configuration option name.
Returns the current value of the PHP configuration variable specified by option
, or false
if an error occurs.
© 1997–2020 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/function.get-cfg-var.php