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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php