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 advance

This will work for any associative array.


foreach($GLOBALS as $key => $value) {
  echo $key.' = '.$value."\n";
}

--
paperCrane <Justin Patrin>Question Everything, Reject Nothing

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to