|
Here's an odd question.
Is there any way (without knowing what variables have been set) to display the output of all the variable on your page.
ie.
$a=9;
$blah=10
$why_do_i_need_this_pointless_functions='yes';
ie. if there was a function like:
show_vars();
and it would output
9
10
yes
Remember 'without' knowing what variables are set, or even the variable names.
for example if it was all in a post I could easily:
foreach ($_POST as $key=>$value) {
echo $key." ".$value."<br />";
}
but if the variable have been set in the page and not in a post,get,session or cookie.
Strange request I know....
|