Re: print out GLOBALS

From: Date: Thu, 25 May 2000 06:44:40 +0000
Subject: Re: print out GLOBALS
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-509@lists.php.net to get a copy of this message
You can also just use phpinfo(); // This outputs much much information "Kevin Beckford" <kbeckford@bigorbit.com> wrote in message news:001c01bfc5ac$ec868970$4201a8c0@rightunder... > > ----- 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) > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#509) next »