$Value) //Loop through each value of the array { $Output.=''.htmlentities($Name, ENT_QUOTES, 'UTF-8').', '.htmlentities("$Value", ENT_QUOTES, 'UTF-8'); //Output the name and value if($Name=="GLOBALS") //This variable likes to recurse, so do not treat it as an array by skipping it $Output.=' [SKIPPED...]
'; else if(is_array($Value) && count($Value)) //If the value is a non empty array, parse the sub array if($Level>20) //Skip if level is too high, preventing super recursion $Output.=' [LEVEL TOO HIGH. SKIPPED...]
'; else $Output.='
'.ParseArrays($Value, $Level+1).'
'; else //Otherwise, a normal value just needs to break to a new line $Output.='
'; } return $Output; } ?>
Dakusan's Default PHP Variables information