Re: Global variables

From: Date: Thu, 19 Apr 2001 01:16:49 +0000
Subject: Re: Global variables
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-49294@lists.php.net to get a copy of this message
Have a look at the enormous $GLOBALS array, something like : <pre> <?php var_dump($GLOBALS) ?> </pre> As previously mentioned, phpinfo() provides some pretty information and it may be more what you want. Regarding $GLOBALS, (as quoted from the manual) : "The $GLOBALS array is an associative array with the name of the global variable being the key and the contents of that variable being the value of the array element." Also, be sure to look around here : http://www.php.net/manual/en/language.variables.predefined.php regards, philip On Wed, 18 Apr 2001, JCampbell wrote: > I know there is a way to do it in Perl, but is there anyway in PHP to > display all of the global variables. Such as OS, browser, date/time, > that sort of thing > > I know I could print each one seperately, but are they all stored in > an array somewhere? >

« previous php.general (#49294) next »