PHP. Руководство по PHP. 2005
ob_get_contents
ob_get_contents
Description
string ob_get_contents (void)This will return the contents of the output buffer or FALSE, if output buffering isn't active.
See also ob_start() and ob_get_length().
ob_get_clean
ob_get_flush