Related Links : Search Engine Optimization | | Search Engine Marketing | Online Marketing | Freelance Programmer| SEO Thailand | SEO Expert | SEO services | PHP Programmer Thailand | SEO Tutorial | What is SEO |

  Home Our SEO Services SEO Expert Consultant Php Programmer Scripts| Email : sachin {at} jainsachin {dot} com

PHP | Flush the output buffer, return it as a string and turn off output buffering | Manual | Tutorial | Help

SEO Services



Website Programming in PHP / MYSQL



Friends


    Flush the output buffer, return it as a string and turn off output buffering

    ob_get_flush

    (PHP 4 >= 4.3.0, PHP 5)

    ob_get_flush — Flush the output buffer, return it as a string and turn off output buffering

    Description

    string ob_get_flush ( void )

    ob_get_flush() flushes the output buffer, return it as a string and turns off output buffering.

    Note: This function is similar to ob_end_flush(), except that this function returns the buffer as a string.

    Return Values

    Returns the output buffer or FALSE if no buffering is active.

    Examples

    Example #1 ob_get_flush() example

    <?php
    //using output_buffering=On
    print_r(ob_list_handlers());

    //save buffer in a file
    $buffer ob_get_flush();
    file_put_contents('buffer.txt'$buffer);

    print_r(ob_list_handlers());
    ?>

    The above example will output:

    Array
    (
        [0] => default output handler
    )
    Array
    (
    )
    


    SEO Tutorial / Articles





    Php / Mysql Tutorial



    Articles



      Portfolio


      SEO by Jainsachin