Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:3200 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 49604 invoked from network); 3 Jul 2003 15:15:01 -0000 Received: from unknown (HELO tabini.ca) (198.63.211.18) by pb1.pair.com with SMTP; 3 Jul 2003 15:15:01 -0000 Received: from cpe0050ba4130cb-cm013439900542.cpe.net.cable.rogers.com ([24.156.157.246] helo=mbe) by tabini.ca with asmtp (TLSv1:RC4-MD5:128) (Exim 4.20) id 19Y5mL-0004w9-8s; Thu, 03 Jul 2003 10:13:45 -0500 To: Derick Rethans Cc: internals@lists.php.net In-Reply-To: References: <1057244229.3291.250.camel@mbe> Content-Type: text/plain Organization: Marco Tabini & Associates, Inc. Message-ID: <1057245213.3291.254.camel@mbe> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.0 Date: 03 Jul 2003 11:13:34 -0400 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] var_dump_html() From: marcot@tabini.ca (Marco Tabini) 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 "
". var_export($var, TRUE). "
"; > > 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