Tag Archive

How to display all Global variables in PHP

Published on August 25, 2010 By admin

Sometimes when debugging an application you need to see all global variables. In PHP there is an easy way: $defined_vars = get_defined_vars(); print_r($defined_vars);