<?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 => 'ru',
  ),
  'this' => 
  array (
    0 => 'arrayiterator.offsetunset.php',
    1 => 'ArrayIterator::offsetUnset',
    2 => 'Сбрасывает значение по смещению',
  ),
  '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' => 'ru',
    '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">Сбрасывает значение по смещению</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-arrayiterator.offsetunset-description">
  <h3 class="title">Описание</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">
   Сбрасывает значение по смещению.
  </p>
  <p class="para">
   Если итерация выполняется и <span class="methodname"><strong>ArrayIterator::offsetUnset()</strong></span> используется для
   сброса текущего индекса итерации, позиция итерации будет смещена к следующему индексу.
   Поскольку позиция итерации также смещается в конце <a href="control-structures.foreach.php" class="link"><code class="literal">foreach</code></a> в теле цикла,
   использование <span class="methodname"><strong>ArrayIterator::offsetUnset()</strong></span> внутри цикла
   <a href="control-structures.foreach.php" class="link"><code class="literal">foreach</code></a> может
   привести к пропуску индексов.
  </p>

 </div>


 <div class="refsect1 parameters" id="refsect1-arrayiterator.offsetunset-parameters">
  <h3 class="title">Список параметров</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">key</code></dt>
     <dd>
      <p class="para">
       Смещение для сброса.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-arrayiterator.offsetunset-returnvalues">
  <h3 class="title">Возвращаемые значения</h3>
  <p class="para">
   Функция не возвращает значения после выполнения.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-arrayiterator.offsetunset-seealso">
  <h3 class="title">Смотрите также</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="methodname"><a href="arrayiterator.offsetget.php" class="methodname" rel="rdfs-seeAlso">ArrayIterator::offsetGet()</a> - Получает значение для смещения</span></li>
    <li><span class="methodname"><a href="arrayiterator.offsetset.php" class="methodname" rel="rdfs-seeAlso">ArrayIterator::offsetSet()</a> - Устанавливает значение для смещения</span></li>
   </ul>
  </p>
 </div>


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