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
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 -
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
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
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
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";
6 matches
Mail list logo