Marco Tabini wrote:

>> Please have a look at PEAR::PHP::Var_Dump:
>>   http://pear.php.net/package-info.php?pacid=103
> Thanks, Frank, I have. But do I really want to load up a PEAR class to
> dump my variables to the browser? For me, the answer is no--although,
> obviously, that is only my opinion.

IMHO its not PHP's job to produce HTML output for debugging purposes.

I'd prefer the PEAR package, because:

* You have more control about the output layout (Var_Dump.php uses skins).
* There are (as said) three functions in PHP that do nearly all the same.
* Using the package is not more complicated than using var_dump.
  It's a two liner (but you can use auto_prepend_file).

Using Var_Dump makes your script slower, but (high-)speed doesn't matter
while debugging PHP scripts.


Frank

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to