note 44395 deleted from function.print-r by tomsommer

From: Date: Wed, 04 Aug 2004 17:33:49 +0000
Subject: note 44395 deleted from function.print-r by tomsommer
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-73941@lists.php.net to get a copy of this message
Note Submitter: Pascal (fourre_tout => yahoo.com) ---- My cool function derived from print_r : <? function get_print_r( $var ){ ob_start(); print_r( $var ); $s = ob_get_contents(); ob_end_clean(); $ret = '<span style="font-family: Courier New, Courier, mono; font-size:12px;"'."\n"; $s = htmlentities( $s ); $s = strtr( $s, array( ' ' => '&nbsp;') ); $ret .= nl2br( $s ); $ret .= '</span>'."\n"; return $ret; } ?>

« previous php.notes (#73941) next »