Re: About printing functions

From: Date: Wed, 21 Jan 2009 19:05:44 +0000
Subject: Re: About printing functions
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-286933@lists.php.net to get a copy of this message
you can use Output Buffering : <?php ob_start();
      badFunctionThatSpitsInsteadOfReturning();
$sReturned = ob_get_contents(); ob_end_clean(); ?>
That's a good though thanks. Although I was aware of output buffering I used to ignore that ob_end_clean actually exists... -- Thodoris

« previous php.general (#286933) next »