note 29275 modified in reserved.variables by jsheets

From: Date: Sat, 08 Feb 2003 00:24:05 +0000
Subject: note 29275 modified in reserved.variables by jsheets
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-43590@lists.php.net to get a copy of this message
[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 --was-- 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 http://www.php.net/manual/en/reserved.variables.php

« previous php.notes (#43590) next »