<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.arrayiterator.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'fr',
  ),
  'this' => 
  array (
    0 => 'arrayiterator.offsetunset.php',
    1 => 'ArrayIterator::offsetUnset',
    2 => 'Efface la valeur d\'une position',
  ),
  'up' => 
  array (
    0 => 'class.arrayiterator.php',
    1 => 'ArrayIterator',
  ),
  'prev' => 
  array (
    0 => 'arrayiterator.offsetset.php',
    1 => 'ArrayIterator::offsetSet',
  ),
  'next' => 
  array (
    0 => 'arrayiterator.rewind.php',
    1 => 'ArrayIterator::rewind',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    'path' => 'reference/spl/arrayiterator/offsetunset.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="arrayiterator.offsetunset" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ArrayIterator::offsetUnset</h1>
  <p class="verinfo">(PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">ArrayIterator::offsetUnset</span> &mdash; <span class="dc-title">Efface la valeur d&#039;une position</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-arrayiterator.offsetunset-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>ArrayIterator::offsetUnset</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.mixed.php" class="type mixed">mixed</a></span> <code class="parameter">$key</code></span>): <span class="type"><a href="language.types.void.php" class="type void">void</a></span></div>

  <p class="para rdfs-comment">
   Efface la valeur d&#039;une position.
  </p>
  <p class="para">
   Si une itération est en cours, et que
   <span class="methodname"><strong>ArrayIterator::offsetUnset()</strong></span> est utilisé pour unset
   l&#039;index actuel de l&#039;itération, la position de l&#039;itération sera avancé au
   prochain index.
   Comme la position de l&#039;itération est aussi avancée à la fin de la déclaration
   de boucle <a href="control-structures.foreach.php" class="link"><code class="literal">foreach</code></a>, l&#039;utilisation de
   <span class="methodname"><strong>ArrayIterator::offsetUnset()</strong></span> à l&#039;intérieur d&#039;une boucle
   <a href="control-structures.foreach.php" class="link"><code class="literal">foreach</code></a>
   peut résulter en des index qui seront omit.
  </p>

 </div>


 <div class="refsect1 parameters" id="refsect1-arrayiterator.offsetunset-parameters">
  <h3 class="title">Liste de paramètres</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">key</code></dt>
     <dd>
      <p class="para">
       La position à effacer.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-arrayiterator.offsetunset-returnvalues">
  <h3 class="title">Valeurs de retour</h3>
  <p class="para">
   Aucune valeur n&#039;est retournée.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-arrayiterator.offsetunset-seealso">
  <h3 class="title">Voir aussi</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="methodname"><a href="arrayiterator.offsetget.php" class="methodname" rel="rdfs-seeAlso">ArrayIterator::offsetGet()</a> - R&eacute;cup&egrave;re la valeur pour une position</span></li>
    <li><span class="methodname"><a href="arrayiterator.offsetset.php" class="methodname" rel="rdfs-seeAlso">ArrayIterator::offsetSet()</a> - D&eacute;finit la valeur d'une position</span></li>
   </ul>
  </p>
 </div>


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