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

Popular posts from this blog

python - Does anyone know how to configure the hunpos wrapper class on nltk? -

mysql - How to insert just year and month into date field? -