Re: [PHP] getting all variables from session into array

2001-04-13 Thread Christian Reiniger
On Friday 13 April 2001 16:03, you wrote: > Does it act as a "normal" array like: > $array = array(one => "Number One", two => "Number Two"); > > How would I go about to make this loop work (if I use the above array > it works): > > while(list($key, $val) = each($HTTP_SESSION_VARS)) > > echo "$ke

Re: [PHP] getting all variables from session into array

2001-04-13 Thread Tobias Talltorp
Does it act as a "normal" array like: $array = array(one => "Number One", two => "Number Two"); How would I go about to make this loop work (if I use the above array it works): while(list($key, $val) = each($HTTP_SESSION_VARS)) echo "$key - $val"; } Regards, // Tobias Talltorp "Rasmus Lerdor

Re: [PHP] getting all variables from session into array

2001-04-13 Thread Rasmus Lerdorf
There is already such an array. It is $HTTP_SESSION_VARS -Rasmus On Fri, 13 Apr 2001, Tobias Talltorp wrote: > I know this question has been up here before, but all the searches I did > turned up with to many or no hits, so I couldn“t find anything. > > I want to get all the variables from a s