Try this: //debugging print_r function print_pre($r,$prefixmsg='') { if ($prefixmsg) $prefixmsg .= ' '; print "<pre>$prefixmsg"; $s = "\n(\n"; ob_start(); print_r($r); ob_end_flush(); print '</pre>'; }
"Denis Arh" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Yeah, i know this... but... ok... ;) > > wouldn't be simplier like this: > > print_r($foo, true); > > i know how to do it, it was just a suggestion... > > > "Marco Glatz" <[EMAIL PROTECTED]> wrote in message > C1A8D5312515D411908C0050BAB3C06F0FA1A0@GATEWAY">news:C1A8D5312515D411908C0050BAB3C06F0FA1A0@GATEWAY... > > > > > How about adding an extra second parameter to print_r > > > function, that would > > > enable HTML output, with <br />s and maybe bold values? > > > > how about this ? > > > > <pre> > > > > <?php print_r($foo); ?> > > > > </pre> > > > > > > mg > > -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php