<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.outcontrol.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'de',
  ),
  'this' => 
  array (
    0 => 'function.ob-end-clean.php',
    1 => 'ob_end_clean',
    2 => 'L&ouml;scht den Inhalt des aktiven Ausgabepuffers und deaktiviert ihn',
  ),
  'up' => 
  array (
    0 => 'ref.outcontrol.php',
    1 => 'Output-Control-Funktionen',
  ),
  'prev' => 
  array (
    0 => 'function.ob-clean.php',
    1 => 'ob_clean',
  ),
  'next' => 
  array (
    0 => 'function.ob-end-flush.php',
    1 => 'ob_end_flush',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'de',
    'path' => 'reference/outcontrol/functions/ob-end-clean.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.ob-end-clean" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ob_end_clean</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">ob_end_clean</span> &mdash; <span class="dc-title">Löscht den Inhalt des aktiven Ausgabepuffers und deaktiviert ihn</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.ob-end-clean-description">
  <h3 class="title">Beschreibung</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>ob_end_clean</strong></span>(): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   Diese Funktion ruft den Ausgabe-Handler auf (mit den Flags
   <strong><code><a href="outcontrol.constants.php#constant.php-output-handler-clean">PHP_OUTPUT_HANDLER_CLEAN</a></code></strong> und
   <strong><code><a href="outcontrol.constants.php#constant.php-output-handler-final">PHP_OUTPUT_HANDLER_FINAL</a></code></strong>), verwirft dessen
   Rückgabewert, verwirft den Inhalt des aktiven Ausgabepuffers und
   deaktiviert den aktiven Ausgabepuffer.
  </p>
  <p class="para">
   Wenn es keinen aktiven Ausgabepuffer gibt, der mit dem Flag
   <strong><code><a href="outcontrol.constants.php#constant.php-output-handler-removable">PHP_OUTPUT_HANDLER_REMOVABLE</a></code></strong> gestartet wurde, schlägt
   <span class="function"><strong>ob_end_clean()</strong></span> fehl.
  </p>
  <p class="para">
   <span class="function"><strong>ob_end_clean()</strong></span> verwirft den Inhalt des aktiven
   Ausgabepuffers, auch wenn er ohne das Flag
   <strong><code><a href="outcontrol.constants.php#constant.php-output-handler-cleanable">PHP_OUTPUT_HANDLER_CLEANABLE</a></code></strong> gestartet wurde.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.ob-end-clean-parameters">
  <h3 class="title">Parameter-Liste</h3>
  <p class="para">Diese Funktion besitzt keine Parameter.</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.ob-end-clean-returnvalues">
  <h3 class="title">Rückgabewerte</h3>
  <p class="para">
   Gibt bei Erfolg <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> zurück. Bei einem Fehler wird <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> zurückgegeben.
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-function.ob-end-clean-errors">
  <h3 class="title">Fehler/Exceptions</h3>
  <p class="para">
   Wenn die Funktion fehlschlägt, erzeugt sie eine
   <strong><code><a href="errorfunc.constants.php#constant.e-notice">E_NOTICE</a></code></strong>-Meldung.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.ob-end-clean-examples">
  <h3 class="title">Beispiele</h3>
  <p class="para">
   Das folgende Beispiel zeigt eine einfache Möglichkeit, den Inhalt des
   aktiven Ausgabepuffers loszuwerden:
  </p>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Beispiel #1 <span class="function"><strong>ob_end_clean()</strong></span>-Beispiel</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />ob_start</span><span style="color: #007700">();<br />echo </span><span style="color: #DD0000">'Text der nicht ausgegeben wird.'</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">ob_end_clean</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.ob-end-clean-seealso">
  <h3 class="title">Siehe auch</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.ob-start.php" class="function" rel="rdfs-seeAlso">ob_start()</a> - Ausgabepufferung aktivieren</span></li>
    <li><span class="function"><a href="function.ob-get-contents.php" class="function" rel="rdfs-seeAlso">ob_get_contents()</a> - Liefert den Inhalt des Ausgabepuffers</span></li>
    <li><span class="function"><a href="function.ob-clean.php" class="function" rel="rdfs-seeAlso">ob_clean()</a> - L&ouml;scht den Inhalt des aktiven Ausgabepuffer</span></li>
    <li><span class="function"><a href="function.ob-get-clean.php" class="function" rel="rdfs-seeAlso">ob_get_clean()</a> - Get the contents of the active output buffer and turn it off</span></li>
    <li><span class="function"><a href="function.ob-end-flush.php" class="function" rel="rdfs-seeAlso">ob_end_flush()</a> - Leert (sendet) den R&uuml;ckgabewert des aktiven Ausgabe-Handlers und
   deaktiviert den aktiven Ausgabepuffer</span></li>
   </ul>
  </p>
 </div>


</div><?php manual_footer($setup); ?>