PHP Tip – See Variables In Play

Ok, this is sort of obvious, but I wanted to mention it anyway to help others. To see all variables currently defined and the values they have, use: print_r(get_defined_vars()); Now, there are a number of related functions that you can use to get other information: get_cfg_var Gets the value of a PHP configuration option get_defined_constants [...]