note 72794 deleted from function.print-r by nlopess
| From: | nlopess@php.net | Date: | Sun, 11 Mar 2007 12:58:17 +0000 |
| Subject: | note 72794 deleted from function.print-r by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-124338@lists.php.net to get a copy of this message | ||
Note Submitter: magic_toaster at yahoo dot com
----
Going along with what SaWey @ localdomain said, if you want some decent output, you might want to
write a small function that looks like this:
spit( $your_crud )
{
echo "<pre>\n";
print_r( $your_crud );
echo "\n</pre><br />\n";
}
It's marginally easier to type out than print_r, but more importantly, you get a better output.
Plus, spit look cooler.