Small cunnings
For viewing values of files (including $ _POST, $ _SESSION, $ _SERVER) it is possible to use simple enough command, for example,
echo LIST_CONTENTS ($ _POST)
The code of function LIST_CONTENTS is resulted in listing 1.
function LIST_CONTENTS ($array,
$tab = " and nbsp; *nbsp; *nbsp; *nbsp; ",
$indent=0)
{
while (list ($key, $value) = each ($array))
{
for ($i=0; $i <$indent; $i ++) $current. = $tab;
if (is_array ($value))
{
$reveal. = " $current$key: the File: <br> $current {<br> ";
$reveal. = LIST_CONTENTS ($value, $tab, $indent+1)
. " $current} <br> ";
}
else $reveal. = " $current$key => $value <br> ";
$current = NULL;
}
return $reveal;
}
For division of values of a file use the following syntax:
LIST_CONTENTS (array $array, string $tab, int $indent);
Here: $tab - the line constant used as the tabulator, and $indent - number of tabulators for division of values.

|