>>106
function string_r($array){

$tabsize = " ";
$arg = func_get_args();
$indent = $arg["1"];
if (func_num_args() == 1):
$indent = $tabsize;
endif;

foreach ($array as $name => $value){
if (is_array($value)):
$contentString .= $indent.'['.$name.'] => Array' . "\n".$indent.$tabsize."(\n";
$contentString .= string_r($value, $indent. $tabsize.$tabsize);
$contentString .= $indent .$tabsize. ")\n\n";
else:
$contentString .= $indent . '['.$name.']' . ' => ' . $value . "\n";
endif;
}

if (func_num_args() == 1):
$contentString = "Array\n(\n" . $contentString . ")\n";
endif;

return $contentString;
}