Re: print out GLOBALS
| From: | Kevin Beckford | Date: | Wed, 24 May 2000 18:21:48 +0000 |
| Subject: | Re: print out GLOBALS | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-457@lists.php.net to get a copy of this message | ||
----- Original Message -----
From: Angus Mackay <amackay@gusnet.cx>
To: <php-general@lists.php.net>
Sent: Wednesday, May 24, 2000 2:07 PM
Subject: [PHP-GENERAL] print out GLOBALS
> okay if no one is going to answer this question does anyone know how to print
> out all of the global variables and their values?
while(list($key,$value)=each($GLOBALS))
{
echo "The variable is $key and it has a value of $value","<br>";
}
For any array in PHP (they are all associative, i think)