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

ob_get_clean()

ob_get_clean - Get current buffer contents and delete current output buffer

Syntax

string ob_get_clean ()

Arguments

-

Description

Gets the current buffer contents and delete current output buffer.

Version

PHP 4.3.0, 5

Return value

Returns the contents of the output buffer and end output buffering. If output buffering isn't active then FALSE is returned.