<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.streamwrapper.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'fr',
  ),
  'this' => 
  array (
    0 => 'streamwrapper.stream-cast.php',
    1 => 'streamWrapper::stream_cast',
    2 => 'Lit la ressource sous-jacente de flux',
  ),
  'up' => 
  array (
    0 => 'class.streamwrapper.php',
    1 => 'streamWrapper',
  ),
  'prev' => 
  array (
    0 => 'streamwrapper.rmdir.php',
    1 => 'streamWrapper::rmdir',
  ),
  'next' => 
  array (
    0 => 'streamwrapper.stream-close.php',
    1 => 'streamWrapper::stream_close',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    'path' => 'reference/stream/streamwrapper/stream-cast.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="streamwrapper.stream-cast" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">streamWrapper::stream_cast</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.3.0, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">streamWrapper::stream_cast</span> &mdash; <span class="dc-title">Lit la ressource sous-jacente de flux</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-streamwrapper.stream-cast-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>streamWrapper::stream_cast</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$cast_as</code></span>): <span class="type"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>

  <p class="para rdfs-comment">
   Cette méthode est appelée en réponse à <span class="function"><a href="function.stream-select.php" class="function">stream_select()</a></span>.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-streamwrapper.stream-cast-parameters">
  <h3 class="title">Liste de paramètres</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">cast_as</code></dt>
     <dd>
      <p class="para">
       Peut être une des valeurs parmi 
       <strong><code><a href="stream.constants.php#constant.stream-cast-for-select">STREAM_CAST_FOR_SELECT</a></code></strong> si
       <span class="function"><a href="function.stream-select.php" class="function">stream_select()</a></span> est la fonction appelant
       <span class="function"><strong>stream_cast()</strong></span> ou
       <strong><code><a href="stream.constants.php#constant.stream-cast-as-stream">STREAM_CAST_AS_STREAM</a></code></strong> si
       <span class="function"><strong>stream_cast()</strong></span> est appelée pour les 
       autres cas.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-streamwrapper.stream-cast-returnvalues">
  <h3 class="title">Valeurs de retour</h3>
  <p class="para">
   Doit retourner le flux sous-jacent, utilisé par le gestionnaire,
   et sinon <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-streamwrapper.stream-cast-seealso">
  <h3 class="title">Voir aussi</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.stream-select.php" class="function" rel="rdfs-seeAlso">stream_select()</a> - Surveille la modification d'un ou plusieurs flux</span></li>
   </ul>
  </p>
 </div>


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