<?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 => 'ja',
  ),
  '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' => 'ja',
    '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> ループの最後であってもインデックスは移動するため、
   <a href="control-structures.foreach.php" class="link"><code class="literal">foreach</code></a> ループの内部で
   <span class="methodname"><strong>ArrayIterator::offsetUnset()</strong></span> を使うと、
   複数のインデックスがスキップされるかもしれません。
  </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); ?>