<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.mbstring.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'function.mb-ereg-search-setpos.php',
    1 => 'mb_ereg_search_setpos',
    2 => '次の正規表現検索を開始する位置を設定する',
  ),
  'up' => 
  array (
    0 => 'ref.mbstring.php',
    1 => 'マルチバイト文字列 関数',
  ),
  'prev' => 
  array (
    0 => 'function.mb-ereg-search-regs.php',
    1 => 'mb_ereg_search_regs',
  ),
  'next' => 
  array (
    0 => 'function.mb-eregi.php',
    1 => 'mb_eregi',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'reference/mbstring/functions/mb-ereg-search-setpos.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.mb-ereg-search-setpos" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">mb_ereg_search_setpos</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.2.0, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">mb_ereg_search_setpos</span> &mdash; <span class="dc-title">次の正規表現検索を開始する位置を設定する</span></p>

 </div>
   
 <div class="refsect1 description" id="refsect1-function.mb-ereg-search-setpos-description">
  <h3 class="title">説明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>mb_ereg_search_setpos</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$offset</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="simpara">
   <span class="function"><strong>mb_ereg_search_setpos()</strong></span> は、
   <span class="function"><a href="function.mb-ereg-search.php" class="function">mb_ereg_search()</a></span> で検索を開始する位置を設定します。
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.mb-ereg-search-setpos-parameters">
  <h3 class="title">パラメータ</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">offset</code></dt>
     <dd>
      <p class="para">
       設定する位置。負の値を指定すると、文字列の末尾から数えます。
      </p>
     </dd>
    
   </dl>
  </p>
 </div>

 
 <div class="refsect1 returnvalues" id="refsect1-function.mb-ereg-search-setpos-returnvalues">
  <h3 class="title">戻り値</h3>
  <p class="simpara">
   成功した場合に <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> を、失敗した場合に <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> を返します。
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.mb-ereg-search-setpos-changelog">
  <h3 class="title">変更履歴</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>バージョン</th>
      <th>説明</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>7.1.0</td>
      <td>
       負の <code class="parameter">offset</code> をサポートするようになりました。
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 notes" id="refsect1-function.mb-ereg-search-setpos-notes">
  <h3 class="title">注意</h3>
  
  <blockquote class="note"><p><strong class="note">注意</strong>: <p class="para">内部エンコーディングあるいは
<span class="function"><a href="function.mb-regex-encoding.php" class="function">mb_regex_encoding()</a></span> で指定した文字エンコーディングを、
この関数の文字エンコーディングとして使用します。</p></p></blockquote>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.mb-ereg-search-setpos-seealso">
  <h3 class="title">参考</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.mb-regex-encoding.php" class="function" rel="rdfs-seeAlso">mb_regex_encoding()</a> - 現在のマルチバイト正規表現用のエンコーディングを取得または設定する</span></li>
    <li><span class="function"><a href="function.mb-ereg-search-init.php" class="function" rel="rdfs-seeAlso">mb_ereg_search_init()</a> - マルチバイト正規表現検索用の文字列と正規表現を設定する</span></li>
   </ul>
  </p>
 </div>


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