Home > PHP > Function > Output Control > ob_get_contents()

ob_get_contents()

ob_get_contents - Return the contents of the output buffer

Syntax

string ob_get_contents ()

Arguments

-

Description

Gets the contents of the output buffer without clearing it.

Version

PHP 4, 5

Return value

This will return the contents of the output buffer or FALSE, if output buffering isn't active.