Re: Re: var_dump_html()
| From: | Frank Wiegand | Date: | Thu, 03 Jul 2003 17:09:47 +0000 |
| Subject: | Re: Re: var_dump_html() | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-3212@lists.php.net to get a copy of this message | ||
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