Re: Template system in PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux