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 - [EMAIL PROTECTED]
All your branches are belong to me!
SRM: Script Running Machine - www.vl-srm.net
---------------------------------------------------------------------------
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php