Dump all PHP variables -
is possible dump global variables in php script? code:
<?php $foo = 1; $bar = "2"; include("blah.php"); dumpall(); // displays $foo, $bar , variables created blah.php
also, possible dump defined constants in php script.
use get_defined_vars
and/or get_defined_constants
$arr = get_defined_vars(); print_r($arr);
Comments
Post a Comment