Re: iteration of $GLOBAL
| From: | Justin Patrin | Date: | Tue, 13 Jan 2004 00:44:23 +0000 |
| Subject: | Re: iteration of $GLOBAL | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-174395@lists.php.net to get a copy of this message | ||
Chris Sherwood wrote:
hello everyone I feel a little stupid asking this but I have tried multiple searches on google and on php.net and cant seem to find the snippet of code that will iterate through all the global variables for the session thanks in advanceThis will work for any associative array. foreach($GLOBALS as $key => $value) { echo $key.' = '.$value."\n"; } -- paperCrane <Justin Patrin>Question Everything, Reject Nothing