[PHP] Getting All Variables?

2002-04-19 Thread Devin Atencio
Is there an easy way in PHP to have it display to screen all the variables that it has in memory? So i can see what variables there is and what they are set to? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Getting All Variables?

2002-04-19 Thread Jason Wong
On Saturday 20 April 2002 07:23, Devin Atencio wrote: Is there an easy way in PHP to have it display to screen all the variables that it has in memory? So i can see what variables there is and what they are set to? print_r($GLOBALS); -- Jason Wong - Gremlins Associates -

[PHP] getting all variables from session into array

2001-04-13 Thread Tobias Talltorp
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

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

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

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 "$key - $val";