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


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to