<?php
// ----------------------------------------------------------------------------

function dumpLocRef($s)
{
    print
"<a href=\"#$s\">$s</a><br>\n";
}
// ----------------------------------------------------------------------------

function dumpArr($arrN)
{
    eval (
"\$arr=&\$$arrN;");
    print
"<a name=\"$arrN\">&nbsp;</a>";
    print
"<table border=\"1\">\n<tr><th colSpan=\"2\">$arrN</th></tr>\n";
    foreach (
array_keys($arr) as $k) {
    print
"<tr><td>$k</td><td>'$arr[$k]'</td></tr>\n";
    }
    print
"</table>\n";
}
// ----------------------------------------------------------------------------

foreach (array_keys ($GLOBALS) as $k)
    if (
$k{0}=='_')
    
dumpLocRef($k);
print
"<hr>\n";
foreach (
array_keys ($GLOBALS) as $k)
    if (
$k{0}=='_')
    
dumpArr($k);

?>