diff --git a/reference/outcontrol/functions/ob-get-contents.xml b/reference/outcontrol/functions/ob-get-contents.xml index e963c75cec..2bc66d46f3 100644 --- a/reference/outcontrol/functions/ob-get-contents.xml +++ b/reference/outcontrol/functions/ob-get-contents.xml @@ -1,5 +1,5 @@ - + @@ -15,8 +15,44 @@ - This will return the contents of the output buffer or &false;, if - output buffering isn't active. + This will return the contents of the output buffer without clearing it + or &false;, if output buffering isn't active. + + + + A simple <function>ob_get_contents</function> example + + +]]> + + + Our example will output: + + + + + See also ob_start and diff --git a/reference/outcontrol/functions/ob-get-length.xml b/reference/outcontrol/functions/ob-get-length.xml index 0d9da71ebd..f802512e4b 100644 --- a/reference/outcontrol/functions/ob-get-length.xml +++ b/reference/outcontrol/functions/ob-get-length.xml @@ -1,5 +1,5 @@ - + @@ -18,6 +18,41 @@ This will return the length of the contents in the output buffer or &false;, if output buffering isn't active. + + + A simple <function>ob_get_contents</function> example + + +]]> + + + Our example will output: + + + + + + See also ob_start and ob_get_contents.