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

ob_flush

Description

The ob_flush of Output Control for PHP flush (send) the output buffer.

Syntax

ob_flush(): bool

Return

Returns true on success or false on failure.

Examples

1 · return

<?

ob_start();

    echo 'output';
    $return = ob_flush();

    var_export($return);

?>
outputtrue

2 · output

<?

ob_start();

    echo 'output1';
    ob_flush();

    echo 'output2';
    ob_flush();

?>
output1output2
HomeMenu