note 29275 deleted from reserved.variables by didou

From: Date: Tue, 05 Aug 2003 15:43:20 +0000
Subject: note 29275 deleted from reserved.variables by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-53424@lists.php.net to get a copy of this message
Note Submitter: keith@setuplinux.com ---- [Editor's Note] The print_r($GLOBALS); will do much the same and it handles multi-dimensional arrays. [End Note] To get a quick list of the pre-defined global variables try this: foreach ($GLOBALS as $var){ foreach ($var as $element => $value){ echo "$element : $value "; } } This should give you a nice list of the varibale names, and there current value. Makes it nice when trying to figure out what's usefull to you. -Keith

« previous php.notes (#53424) next »