Re: Template system in PHP
| From: | Christoph Boget | Date: | Tue, 12 Feb 2008 21:32:28 +0000 |
| Subject: | Re: Template system in PHP | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-269203@lists.php.net to get a copy of this message | ||
> I agree. I usually add a little function like this to my PHP projects:
> function debug( $var )
> {
> echo '<pre>';
> print_r( $var );
> echo '</pre>';
>
> }
As an aside, you can save lines when debugging by doing:
echo '<pre>' . print_r( $var, TRUE ) . '</pre>';
thnx,
Chris