&$value) { if (ref_equals($target, $value)) { return true; } } return false; } function explorer(&$array, &$ignore = array(), $depth = -1) { if ($depth == 0) { echo("too deep..."); return; } if (gettype($array) == "array" && !search($ignore, $array)) { $ignore[] = &$array; echo( " " ); foreach ($array as $key => &$value) { echo( " " ); } echo( "
KEYS VALUES
" . $key . " " ); explorer($value, $ignore, $depth - 1); echo( "
" ); } else { echo($array); } } //populate lazy variables. $_SERVER; $_ENV; $_REQUEST; echo( "

GLOBALS

"); explorer($GLOBALS); ?>