Name

get_cfg_var

Synopsis

string get_cfg_var(string name)

Returns the value of the PHP configuration variable name. If name does not exist, get_cfg_var() returns false. Only those configuration variables set in a configuration file, as returned by cfg_file_path(), are returned by this function—compile-time settings and Apache configuration file variables are not returned.

Get Programming PHP, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.