2009/1/22 Török Alpár <torokalpar@xxxxxxxxx>: > > > 2009/1/22 Jan G.B. <ro0ot.w00t@xxxxxxxxxxxxxx> >> >> 2009/1/21 Thodoris <tgol@xxxxxxxxxx>: >> >> $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... >> You can even make it shorter by using >> $retVar = ob_get_clean(); >> http://de.php.net/ob_get_clean() > Yes, but that leaves output buffering on, and that's a bad thing, especially > if you are on the console, but anyhow, why leave it on when you don't need > it, or even if you do, why create more levels? That's not true. >From the PHP Manual (link above): string ob_get_clean ( void ) Gets the current buffer contents and delete current output buffer. *ob_get_clean() essentially executes both ob_get_contents() and ob_end_clean().* bye -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php