Re: var_dump_html()
| From: | Marco Tabini | Date: | Thu, 03 Jul 2003 15:13:34 +0000 |
| Subject: | Re: var_dump_html() | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-3200@lists.php.net to get a copy of this message | ||
My only consideration is that most people use var_dump in a web
environment--hence it seems counterintuitive to have to enclose the
function in additional HTML tags.
Cheers!
On Thu, 2003-07-03 at 11:09, Derick Rethans wrote:
> On Thu, 3 Jul 2003, Marco Tabini wrote:
>
> > Not sure if this interest anyone, but the attached patch adds a function
> > called var_dump_html() that performs the same functionality as
> > var_dump(), except that it outputs HTML instead of plain text.
> > var_dump() is a bit impractical to use in a web environment, IMO.
>
> We already have three functions for dumping debug info (var_dump,
> var_export and print_r). The latter two can be used like:
>
> echo "<pre>". var_export($var, TRUE). "</pre>";
>
> I don't think that we should add another here.
>
> regards,
> Derick
--
Marco Tabini
President
Marco Tabini & Associates, Inc.
28 Bombay Avenue
Toronto, ON M3H 1B7
Canada
Phone: (416) 630-6202
Fax: (416) 630-5057
Web: http://www.tabini.ca