Aug 10
25
Sometimes when debugging an application you need to see all global variables.
In PHP there is an easy way:
-
$defined_vars = get_defined_vars();
-
print_r($defined_vars);
Aug 10
25
Sometimes when debugging an application you need to see all global variables.
In PHP there is an easy way: