downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

Our source is open

The syntax highlighted source is automatically generated by PHP from the plaintext script. If you're interested in what's behind the several functions we used, you can always take a look at the source of the following files:

Of course, if you want to see the source of this page, we have it available. You can also browse the Git repository for this website on git.php.net.

Source of: /manual/es/function.ob-end-flush.php

<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = 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 => 'es',
  ),
 
'this' =>
  array (
   
0 => 'function.ob-end-flush.php',
   
1 => 'ob_end_flush',
  ),
 
'up' =>
  array (
   
0 => 'ref.outcontrol.php',
   
1 => 'Funciones del Control de la salida',
  ),
 
'prev' =>
  array (
   
0 => 'function.ob-end-clean.php',
   
1 => 'ob_end_clean',
  ),
 
'next' =>
  array (
   
0 => 'function.ob-flush.php',
   
1 => 'ob_flush',
  ),
 
'alternatives' =>
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);

manual_header();
?>
<div id="function.ob-end-flush" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ob_end_flush</h1>
  <p class="verinfo">(PHP 4, PHP 5)</p><p class="refpurpose"><span class="refname">ob_end_flush</span> &mdash; <span class="dc-title">Volcar (enviar) el búfer de salida y deshabilitar el almacenamiento en el mismo</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.ob-end-flush-description">
  <h3 class="title">Descripción</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">bool</span> <span class="methodname"><strong>ob_end_flush</strong></span>
    ( <span class="methodparam">void</span>
   )</div>

  <p class="para rdfs-comment">
   Esta función enviará el contenido del búfer de salida en cola (si
   existe) y los deshabilitará. Si fuera necesario procesar
   el contenido del búfer, se ha de llamar a
    <span class="function"><a href="function.ob-get-contents.php" class="function">ob_get_contents()</a></span> antes que a
    <span class="function"><strong>ob_end_flush()</strong></span>, ya que el contenido del búfer es
   descartado después de llamar a  <span class="function"><strong>ob_end_flush()</strong></span>.
  </p>
  <blockquote class="note"><p><strong class="note">Nota</strong>:
   <span class="simpara">
    Esta función es similar a  <span class="function"><a href="function.ob-get-flush.php" class="function">ob_get_flush()</a></span>, excepto
    que  <span class="function"><a href="function.ob-get-flush.php" class="function">ob_get_flush()</a></span> devuelve el búfer como una cadena de caracteres.
   </span>
  </p></blockquote>
 </div>

 
 <div class="refsect1 returnvalues" id="refsect1-function.ob-end-flush-returnvalues">
  <h3 class="title">Valores devueltos</h3>
  <p class="para">
   Devuelve <strong><code>TRUE</code></strong> en caso de éxito o <strong><code>FALSE</code></strong> en caso de error. Entre las posibles razones de un fallo se encuentra llamar
   la función sin un búfer activo, o que por algún motivo no se pueda
   eliminar un búfer (posible en el caso de búferes especiales).
  </p>
 </div>

 
 <div class="refsect1 errors" id="refsect1-function.ob-end-flush-errors">
  <h3 class="title">Errores/Excepciones</h3>
  <p class="para">
   Si la función falla, genera un error de nivel <strong><code>E_NOTICE</code></strong>.
  </p>
 </div>

 
 <div class="refsect1 changelog" id="refsect1-function.ob-end-flush-changelog">
  <h3 class="title">Historial de cambios</h3>
  <p class="para">
   <table class="doctable informaltable">
   
     <thead>
      <tr>
       <th>Versión</th>
       <th>Descripción</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>4.2.0</td>
       <td>
        El valor de retorno booleano fue agregado.
       </td>
      </tr>

     </tbody>
   
   </table>

  </p>
 </div>

 
 <div class="refsect1 examples" id="refsect1-function.ob-end-flush-examples">
  <h3 class="title">Ejemplos</h3>
  <p class="para">
   <div class="example" id="example-460">
    <p><strong>Ejemplo #1 Ejemplo de  <span class="function"><strong>ob_end_flush()</strong></span></strong></p>
    <div class="example-contents"><p>
     El siguiente ejemplo muestra una forma sencilla de volcar y finalizar todos los
     búferes de salida:
    </p></div>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br />&nbsp;&nbsp;</span><span style="color: #007700">while&nbsp;(@</span><span style="color: #0000BB">ob_end_flush</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-flush-seealso">
  <h3 class="title">Ver también</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"> <span class="function"><a href="function.ob-start.php" class="function" rel="rdfs-seeAlso">ob_start()</a> - Activa el almacenamiento en b&uacute;fer de salida</span></li>
    <li class="member"> <span class="function"><a href="function.ob-get-contents.php" class="function" rel="rdfs-seeAlso">ob_get_contents()</a> - Devolver el contenido del b&uacute;fer de salida</span></li>
    <li class="member"> <span class="function"><a href="function.ob-get-flush.php" class="function" rel="rdfs-seeAlso">ob_get_flush()</a> - Volcar el b&uacute;fer de salida, devolverlo como una cadena de caracteres y deshabilitar el almacenamiento en el b&uacute;fer de salida</span></li>
    <li class="member"> <span class="function"><a href="function.ob-flush.php" class="function" rel="rdfs-seeAlso">ob_flush()</a> - Vaciar (enviar) el b&uacute;fer de salida</span></li>
    <li class="member"> <span class="function"><a href="function.ob-end-clean.php" class="function" rel="rdfs-seeAlso">ob_end_clean()</a> - Limpiar (eliminar) el b&uacute;fer de salida y deshabilitar el almacenamiento en el mismo</span></li>
   </ul>
  </p>
 </div>

 
</div><?php manual_footer(); ?>
 
show source | credits | sitemap | contact | advertising | mirror sites