global_variable_exists($name)
Check whether a variable with the given name exists in the global scope (at the top level of the file).
global_variable_exists($name)
Check whether a variable with the given name exists in the global scope (at the top level of the file).
Examples:
$a-false-value: false;
global-variable-exists(a-false-value) => true
.foo {
$some-var: false;
@if global-variable-exists(some-var) { /* false, doesn't run */ }
}
Parameters:
Returns:
Designed by : w10schools
service@w10schools.com
Please login to continue.