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

Javascript line number mapping -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -