note 100922 deleted from reserved.variables.globals by danbrown
| From: | danbrown@php.net | Date: | Mon, 15 Nov 2010 14:38:05 +0000 |
| Subject: | note 100922 deleted from reserved.variables.globals by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-174045@lists.php.net to get a copy of this message | ||
Note Submitter: site-php dot net at hatsuseno dot org
----
@ravenswd
That's not too hard to solve, you can iterate over the $GLOBALS in a foreach loop, skip the
"GLOBALS" key and dump the value of every other key. This of course requires that you
don't have a reference in the global namespace pointing back to $GLOBALS.