Re: Template system in PHP
| From: | Nathan Rixham | Date: | Tue, 12 Feb 2008 21:45:13 +0000 |
| Subject: | Re: Template system in PHP | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-269209@lists.php.net to get a copy of this message | ||
guys, you all know you can F5 in the "view source" bit of firefox yeah..
save's all the <pre>'s and loads of time!
right click : view source : F5 till your done debugging.
:)
Christoph Boget wrote:
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