Is there any method to get all the PHP variables and its value in a page ?
I searched for it and couldn't find one.
Eg:
$a = 10;
$b = $a + 5;
What I am looking for is a method like
get_all_var()
gives output:
$a = 10
$b = 15
Is there any method to get all the PHP variables and its value in a page ?
I searched for it and couldn't find one.
Eg:
$a = 10;
$b = $a + 5;
What I am looking for is a method like
get_all_var()
gives output:
$a = 10
$b = 15
You can try with get_defined_vars