Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:3201 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 56249 invoked from network); 3 Jul 2003 15:22:02 -0000 Received: from unknown (HELO bart.tera-byte.com) (216.194.64.152) by pb1.pair.com with SMTP; 3 Jul 2003 15:22:02 -0000 Received: from TRABAJOS2 (116.Red-80-37-11.pooles.rima-tde.net [80.37.11.116]) (authenticated (0 bits)) by bart.tera-byte.com (8.11.6/8.11.6) with ESMTP id h63FF4L11744; Thu, 3 Jul 2003 09:15:04 -0600 Message-ID: <004a01c34176$c03ee6c0$0301a8c0@TRABAJOS2> To: "Marco Tabini" , "Derick Rethans" Cc: References: <1057244229.3291.250.camel@mbe> <1057245213.3291.254.camel@mbe> Date: Thu, 3 Jul 2003 17:21:14 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2720.3000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Subject: Re: [PHP-DEV] var_dump_html() From: epplestun@alaplaya.com ("epplestun") In my opinion is good idea but Derick has rason, is better if var_dump_html colorise the output :-) ----- Original Message ----- From: "Marco Tabini" To: "Derick Rethans" Cc: Sent: Thursday, July 03, 2003 5:13 PM Subject: Re: [PHP-DEV] var_dump_html() > 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 > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >