cvs: phpdoc-de /reference/outcontrol/functions ob-end-flush.xml ob-get-contents.xml

From: Date: Wed, 24 Jan 2007 00:24:54 +0000
Subject: cvs: phpdoc-de /reference/outcontrol/functions ob-end-flush.xml ob-get-contents.xml
Groups: php.doc.de 
Request: Send a blank email to doc-de+get-1873@lists.php.net to get a copy of this message
hholzgra Wed Jan 24 00:24:54 2007 UTC Modified files: /phpdoc-de/reference/outcontrol/functions ob-end-flush.xml ob-get-contents.xml Log: WS http://cvs.php.net/viewvc.cgi/phpdoc-de/reference/outcontrol/functions/ob-end-flush.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-de/reference/outcontrol/functions/ob-end-flush.xml diff -u phpdoc-de/reference/outcontrol/functions/ob-end-flush.xml:1.4 phpdoc-de/reference/outcontrol/functions/ob-end-flush.xml:1.5 --- phpdoc-de/reference/outcontrol/functions/ob-end-flush.xml:1.4 Mon Jan 22 12:53:30 2007 +++ phpdoc-de/reference/outcontrol/functions/ob-end-flush.xml Wed Jan 24 00:24:54 2007 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <!-- EN-Revision: 1.1 Maintainer: hholzgra Status: working --> <refentry id="function.ob-end-flush"> <refnamediv> @@ -13,7 +13,7 @@ <title>Beschreibung:</title> <methodsynopsis> <type>void</type><methodname>ob_end_flush</methodname> - <void/> + <void/> </methodsynopsis> <para> Der Inhalt des Ausgabe-Puffers (sofern vorhanden) wird abgeschickt @@ -25,8 +25,8 @@ </para> <para> Siehe auch <function>ob_start</function>, - <function>ob_get_contents</function> und - <function>ob_end_clean</function>. + <function>ob_get_contents</function> und + <function>ob_end_clean</function>. </para> </refsect1> </refentry> http://cvs.php.net/viewvc.cgi/phpdoc-de/reference/outcontrol/functions/ob-get-contents.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-de/reference/outcontrol/functions/ob-get-contents.xml diff -u phpdoc-de/reference/outcontrol/functions/ob-get-contents.xml:1.5 phpdoc-de/reference/outcontrol/functions/ob-get-contents.xml:1.6 --- phpdoc-de/reference/outcontrol/functions/ob-get-contents.xml:1.5 Wed Jan 24 00:20:21 2007 +++ phpdoc-de/reference/outcontrol/functions/ob-get-contents.xml Wed Jan 24 00:24:54 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: hholzgra Status: working --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.3 Maintainer: hholzgra Status: ready --> <refentry id="function.ob-get-contents"> <refnamediv> <refname>ob_get_contents</refname> @@ -15,8 +15,45 @@ <void/> </methodsynopsis> <para> - Damit wird der Inhalt des Ausgabe-Puffers zurück gegeben (oder - &false;, wenn die Ausgabe-Pufferung nicht aktiv ist). + <function>ob_get_contents</function> gibt den Inhalt des + Ausgabepuffers zurück ohne ihn zu löschen oder + &false;, wenn die Ausgabe-Pufferung nicht aktiv ist. + </para> + <para> + <example> + <title>Ein einfaches <function>ob_get_contents</function> Beispiel</title> + <programlisting role="php"> +<![CDATA[ +<?php + +ob_start(); + +echo "Hello "; + +$out1 = ob_get_contents(); + +echo "World"; + +$out2 = ob_get_contents(); + +ob_end_clean(); + +var_dump($out1, $out2); +?> +]]> + </programlisting> + <para> + Dieses Beispiel produziert folgende Ausgabe: + </para> + <screen> +<![CDATA[ + +string(6) "Hello " +string(11) "Hello World" + +]]> + </screen> + </example> </para> <para> Siehe auch <function>ob_start</function>,

« previous php.doc.de (#1873) next »