Re: getting all variables from session into array
| From: | Christian Reiniger | Date: | Fri, 13 Apr 2001 15:40:19 +0000 |
| Subject: | Re: getting all variables from session into array | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-48461@lists.php.net to get a copy of this message | ||
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 "$key - $val";
> }
Exactly like that
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
I saw God --------- and she was black.