HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

get_cfg_var

Description

The get_cfg_var of Options / Information for PHP gets the value of a PHP configuration option.

Syntax

get_cfg_var(string $option): string|array|false

Parameters

option

The configuration option name.

Return

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

Examples

1

<?

$option = "allow_url_fopen";

$return = get_cfg_var($option);

var_export($return);
'1'