note 53741 modified in function.print-r by derick
| From: | derick@php.net | Date: | Thu, 27 Oct 2005 10:15:54 +0000 |
| Subject: | note 53741 modified in function.print-r by derick | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-97673@lists.php.net to get a copy of this message | ||
Print arrays formatted for a browser easily:
<?php
function print_html_r( $aData ) {
echo nl2br( eregi_replace( " ", " ", print_r( $data, TRUE ) ) );
}
?>
--was--
Print arrays formatted for a browser easily:
function print_html_r( $aData ) {
echo nl2br( eregi_replace( " ", " ", print_r( $aData, TRUE ) ) );
} // end of print_html_r
http://php.net/manual/en/function.print-r.php