Title is pretty much self explanatory...
Here is my code :
$myVars=file_get_contents('1.php');
highlight_string($myVars);
$ignore=array('GLOBALS', '_FILES', '_COOKIE', '_POST', '_GET', '_SERVER', '_ENV');
$myVars=array_diff_key(get_defined_vars()+array_flip($ignore),array_flip($ignore));
exit;
I'm trying to fetch all variables (except php predefined variables) into an array.
Small tweak needed here :)