Re: print_r's feature
| From: | derick@php.net | Date: | Thu, 25 Jul 2002 11:26:15 +0000 |
| Subject: | Re: print_r's feature | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-86184@lists.php.net to get a copy of this message | ||
On Thu, 25 Jul 2002, Dan Hardiker wrote:
> <?php
> function printData($variable) {
> return "<pre>".print_r($variable,true)."</pre>";
> }
>
> echo printData($_SERVER);
> ?>
>
> Currently, this is only possible using output buffering which i would
> prefer to avoid. A real world use is logging / debugging - where you
> want a print_r dump to be piped to a file / console while the rest of
> the output sent to the client. [something I do quite regularly]
>
> Would this be possible for some close version of PHP? Would it help if I
> was to code a patch and submit it?
Addedin CVS, will be available in 4.3.0.
Derick
---------------------------------------------------------------------------
Did I help you? http://www.derickrethans.nl/link.php?url=giftlist
Frequent ranting: http://www.derickrethans.nl/
---------------------------------------------------------------------------
PHP: Scripting the Web - derick@php.net
All your branches are belong to me!
SRM: Script Running Machine - www.vl-srm.net
---------------------------------------------------------------------------