From 5cd1e3fa265f4c61dad3b83170797d5a621a04d0 Mon Sep 17 00:00:00 2001 From: Hartmut Holzgraefe Date: Wed, 28 Jun 2000 13:09:33 +0000 Subject: [PATCH] added documentation for output buffering functions ob_*() git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@27286 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/strings.xml | 162 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 162 insertions(+) diff --git a/functions/strings.xml b/functions/strings.xml index 516f833853..204d3a17fe 100644 --- a/functions/strings.xml +++ b/functions/strings.xml @@ -943,6 +943,160 @@ $colon_separated = implode (":", $array); + + + ob_start + + Turn on output buffering + + + + Description + + + void ob_start + + + + + This function will turn output buffering. While output buffering + is active there will be no rel output from the script, the output + is appended to an internal buffer instead. + + + The contents of this internal buffer may be copied into a string + variable using ob_get_contents. + Real output happens when ob_end_flush is + called and ob_end_clean will just silently + discard the buffer contents. + + + See also ob_get_contents, + ob_end_flush, + ob_end_clean + and ob_implicit_flush + + + + + + + ob_get_contents + + Return the contents of the output buffer + + + + Description + + + string ob_get_contents + + + + + This will return the content of the output buffer + or FALSE, if output buffering isn't active. + + + See also ob_start, + ob_end_flush, + and ob_end_clean. + + + + + + + ob_end_flush + + Flush (send) the output buffer and turn off output buffering + + + + Description + + + void ob_end_flush + + + + + This function will send the contents of the output buffer + (if any) and turn output buffering off. + If you want to further process the buffers content you have + to call ob_get_contents before + ob_end_flush as the buffer contents + get discarded after output. + + + See also ob_start, + ob_get_contents, + and ob_end_clean. + + + + + + + ob_end_clean + + Clean (erase) the output buffer and turn off output buffering + + + + Description + + + void ob_end_clean + + + + + This function discards the content of the output buffer and + turns off output buffering. + + + See also ob_start + and ob_end_flush. + + + + + + + ob_implicit_flush + + Turn implicit flush on/off + + + + Description + + + void ob_implicit_flush + int flag + + + + ob_implicit_flush will turn implicit flushing on or off + (if no flag is given, it defaults to on). + Implicit flushing will result in a flush operation after every output call, + so that explicit calls to flush will no longer be needed. + + + Turning implicit flushing on will disable output buffering, the output buffers + current output will be sent as if ob_end_flush had been + called. + + + See also flush, + ob_start + and ob_end_flush. + + + + Ord @@ -1978,6 +2132,14 @@ echo str_repeat ("-=", 10); str1 which consists entirely of characters in str2. + + + +strspn("42 is the answer, what is the question ...","1234567890"); + + will return 2 as result. + + See also strcspn.