Quboid,
I don't see why having a horizontal line as <hr /> does will help me? anyway, I tried it and it didn't.
what I finally did was:
ob_start();
print_r($arr);
$str = ob_get_contents();
ob_end_clean();
$str = preg_replace("/ /"," ",$str);
$str = nl2br($str);
print_r($str);
now it looks good on html, but in the source code it is a big mess of nbsp. its less important to me, but if anyone has suggestion to make it good both in html and in source code, I'd be happy to read.
Thanks
ravid