note 100922 added to reserved.variables.globals

From: Date: Mon, 15 Nov 2010 14:34:10 +0000
Subject: note 100922 added to reserved.variables.globals
Groups: php.notes 
Request: Send a blank email to php-notes+get-174044@lists.php.net to get a copy of this message
@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. ---- Server IP: 69.147.83.197 Probable Submitter: 80.242.237.82 ---- Manual Page -- http://www.php.net/manual/en/reserved.variables.globals.php Edit -- https://master.php.net/note/edit/100922 Del: integrated -- https://master.php.net/note/delete/100922/integrated Del: useless -- https://master.php.net/note/delete/100922/useless Del: bad code -- https://master.php.net/note/delete/100922/bad+code Del: spam -- https://master.php.net/note/delete/100922/spam Del: non-english -- https://master.php.net/note/delete/100922/non-english Del: in docs -- https://master.php.net/note/delete/100922/in+docs Del: other reasons-- https://master.php.net/note/delete/100922 Reject -- https://master.php.net/note/reject/100922 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#174044) next »