F.27. Output Buffering
Function | Returns | Description |
---|---|---|
ob_list_handlers() | false|array | Lists all output_buffers in an array. |
ob_start([ string|array user_function [, int chunk_size [, bool erase]]]) | bool | Turns on Output Buffering (specifying an optional output handler). |
ob_flush(void) | bool | Flushes (sends) contents of the output buffer. The last buffer content is sent to next buffer. |
ob_clean(void) | bool | Cleans (deletes) the current output buffer. |
ob_end_flush(void) | bool | Flushes (sends) the output buffer, and deletes current output buffer. |
ob_end_clean(void) | bool | Cleans the output buffer, and deletes current output buffer. |
ob_get_flush(void) | bool | Gets current buffer contents, flushes (sends) the output buffer, and deletes current output buffer. |
ob_get_clean(void) | bool | Gets current buffer contents and deletes current output buffer. |
ob_get_contents(void) | string | Returns the contents of the output buffer. |
ob_get_level(void) | int | Returns the nesting level of the output buffer. |
ob_get_length(void) | int | Returns the length of the output buffer. |
ob_get_status([bool full_status]) | false|array | Returns the status of the active or all output buffers. |
ob_implicit_flush([int flag]) | void | Turns implicit flush on/off and is equivalent to calling flush() after every output call. |
output_reset_rewrite_vars(void) | bool | Resets (clears) URL rewriter values. |
output_add_rewrite_var(string name, string value) | bool | Adds URL rewriter values. |
Get Web Standards Programmer's Reference: HTML, CSS, JavaScript®, Perl, Python®, and PHP now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.