Is there a function and/or object and/or extension in PHP that will let you view all the variables defined in the current scope? Something like:
var_export(
get_defined_vars
This function returns a multidimensional array containing a list of all defined variables, be them environment, server or user-defined variables, within the scope that get_defined_vars() is called.
get_defined_vars()