From aa2c16f49161acd8e9fcf059c37436ff6acd0e78 Mon Sep 17 00:00:00 2001 From: Hartmut Holzgraefe Date: Tue, 27 Dec 2005 21:12:53 +0000 Subject: [PATCH] added more examples git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@203795 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../outcontrol/functions/ob-get-contents.xml | 42 +++++++++++++++++-- .../outcontrol/functions/ob-get-length.xml | 37 +++++++++++++++- 2 files changed, 75 insertions(+), 4 deletions(-) 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.