> 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

