here is a posting in another forum that deals with it (however it's a php v3 forum):
The best suggestion I can think of would be something like:
while(list($k,$v)=each($GLOBALS)) {
if($k[0]=="a") echo "$k: $v<br>\n";
}
This prints out all the variables in the PHP symbol table whose names
start with "a".
-Rasmus
http://lists.omnipotent.net/php3/199809/msg00669.html