← All docs

ob_get_clean()

Gets the current buffer contents and deletes the current output buffer.

ob_get_clean()

function ob_get_clean(): mixed

Gets the current buffer contents and deletes the current output buffer.

Parameters: none.

Returns: mixed

Availability

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how ob_get_clean is implemented in the compiler, see the internals page.