function show_var($x)
{
$tabella = '<table border=1><tr> <th>variable</th> <th>value</th> </tr>';
foreach( $x as $key => $value)
{
if (!is_object($value) and $key !== '_SERVER')
{
if (is_array ($value))
{
$tabella.='<tr><td>$'.$key.'</td><td>';
if ( sizeof($value)>0 )
{
$tabella.= show_var($value);
}
else
{
$tabella.='EMPTY';
}
$tabella.='</td></tr>';
}
else
{
$tabella.='<tr><td>$'.$key.'</td><td>'.$value.'</td></tr>';
}
}
}
$tabella.= '</table>';
return $tabella;
}
$tabella = show_var(get_defined_vars());