HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

ob_clean

Description

The ob_clean of Output Control for PHP clean (erase) the output buffer.

Syntax

ob_clean(): bool

Return

Returns true on success or false on failure.

Examples

1 · return

<?

ob_start();

    echo "output";
    $return = ob_clean();

    var_export($return);
true

2 · output

<?

ob_start();

    echo "output1";
    ob_clean();

    echo "output2";
    ob_clean();