Is there a way to expose all the variables from cache or session?
without knowing the exact names of these variables names?
Is there a way to do this?
Thank you in advance.
print_r( $_SESSION );
or, I prefer to do:
echo '<pre>'.print_r( $_SESSION, true ).'</pre>';
Also see [man]get_defined_vars/man and [man]get_defined_constants/man (and we might as well throw in [man]get_defined_functions/man here, too).