&reftitle.examples;
Basic usageOutput Control example
]]>
In the above example, the output from echo
would be stored in the output buffer until
ob_end_flush was called. In the mean time,
the call to setcookie successfully stored a
cookie without causing an error. (Headers cannot normally be sent
to the browser after data has already been sent.)
Output rewrite usage
Since PHP 7.1.0, output_add_rewrite_var, output_reset_rewrite_vars use dedicated output buffer. i.e. It does not use trans sid output buffer.
Output rewrite examplebug1234
]]>
&example.outputs;
bug1234
]]>
Since PHP 7.1.0, output rewrite functions have it's own INI settings, url_rewriter.tags and url_rewriter.hosts.