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 Lerdorf" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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 session and get them into an
array
> > like this:
> >
> > $sessionvar[userid]
> > $sessionvar[user]
> > $sessionvar[email]
> > ...
> >
> > I think I remember something call vardump or something, but I couldīt
find
> > it in the manual.
> >
> > Any thoughts?
> > // Tobias
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]