首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

get_cfg_var

(PHP 4, PHP 5, PHP 7)

get_cfg_var — Gets the value of a PHP configuration option

Description

代码语言:javascript
复制
string get_cfg_var ( string $option )

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.

Parameters

option

The configuration option name.

Return Values

Returns the current value of the PHP configuration variable specified by option, or FALSE if an error occurs.

Changelog

Version

Description

5.3.0

get_cfg_var() was fixed to be able to return "array" ini options.

See Also

  • ini_get() - Gets the value of a configuration option
  • ini_get_all() - Gets all configuration options

← gc_mem_caches

get_current_user →

代码语言:txt
复制
 ? 1997–2017 The PHP Documentation Group

Licensed under the Creative Commons Attribution License v3.0 or later.

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com