<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/outcontrol.user-level-output-buffers.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'it',
  ),
  'this' => 
  array (
    0 => 'outcontrol.output-handler-return-values.php',
    1 => 'Output Handler Return Values',
    2 => 'Output Handler Return Values',
  ),
  'up' => 
  array (
    0 => 'outcontrol.user-level-output-buffers.php',
    1 => 'User-Level Output Buffers',
  ),
  'prev' => 
  array (
    0 => 'outcontrol.flags-passed-to-output-handlers.php',
    1 => 'Flags Passed To Output Handlers',
  ),
  'next' => 
  array (
    0 => 'outcontrol.examples.php',
    1 => 'Esempi',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/outcontrol/user-level-output-buffers.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="outcontrol.output-handler-return-values" class="section">
  <h2 class="title">Output Handler Return Values</h2>
  <p class="para">
   The return value of the output handler is internally coerced into a string
   following standard PHP type semantics, with two exceptions:
   <span class="type"><a href="language.types.array.php" class="type array">array</a></span>s and <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span>eans.
  </p>
  <p class="para">
   Arrays are converted into the string <code class="literal">&quot;Array&quot;</code>
   but the <code class="literal">Array to string conversion</code> warning
   is not triggered.
  </p>
  <p class="para">
   If the handler returns <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> the contents of the buffer are returned.
   If the handler returns <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> an empty string is returned.
  </p>
  <blockquote class="note"><p><strong class="note">Nota</strong>: 
   <span class="simpara">
    If a handler returns <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> or throws an exception
    its <strong><code><a href="outcontrol.constants.php#constant.php-output-handler-disabled">PHP_OUTPUT_HANDLER_DISABLED</a></code></strong> status flag is set.
   </span>
  </p></blockquote>
 </div><?php manual_footer($setup); ?>