Hi there. Is there anyway I can print a list of variables used and their values? Without knowing what they are called?
thanks, Chris
You could iterate through $GLOBALS and print out all the variables in it.
That would only tell you about globals though, not locals.
Mark
get_defined_vars()
In the global scope $GLOBALS and get_defined_vars() will be the same; inside a function get_defined_vars() will return only that function's variables.
NogDog. Perfect, thanks!
Cheers guys, Just what I wanted.