note 44395 added to function.print-r
| From: | (fourre_tout=>yahoo.com) | Date: | Wed, 04 Aug 2004 17:01:48 +0000 |
| Subject: | note 44395 added to function.print-r | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-73938@lists.php.net to get a copy of this message | ||
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( ' ' => ' ') );
$ret .= nl2br( $s );
$ret .= '</span>'."\n";
return $ret;
}
?>
----
Manual Page -- http://www.php.net/manual/en/function.print-r.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+44395
Delete -- http://master.php.net/manage/user-notes.php?action=delete+44395&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+44395&report=yes
Search -- http://master.php.net/manage/user-notes.php