<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.imap.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'function.imap-fetchbody.php',
    1 => 'imap_fetchbody',
    2 => 'メッセージ本文中の特定のセクションを取り出す',
  ),
  'up' => 
  array (
    0 => 'ref.imap.php',
    1 => 'IMAP 関数',
  ),
  'prev' => 
  array (
    0 => 'function.imap-fetch-overview.php',
    1 => 'imap_fetch_overview',
  ),
  'next' => 
  array (
    0 => 'function.imap-fetchheader.php',
    1 => 'imap_fetchheader',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'reference/imap/functions/imap-fetchbody.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.imap-fetchbody" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">imap_fetchbody</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">imap_fetchbody</span> &mdash; <span class="dc-title">メッセージ本文中の特定のセクションを取り出す</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.imap-fetchbody-description">
  <h3 class="title">説明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>imap_fetchbody</strong></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="class.imap-connection.php" class="type IMAP\Connection">IMAP\Connection</a></span> <code class="parameter">$imap</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$message_num</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$section</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$flags</code><span class="initializer"> = 0</span></span><br>): <span class="type"><span class="type"><a href="language.types.string.php" class="type string">string</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>

  <p class="para rdfs-comment">
   指定されたメッセージ本文中の特定のセクションを取得します。
   本文パートは、この関数ではデコードされません。
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.imap-fetchbody-parameters">
  <h3 class="title">パラメータ</h3>
  <p class="para">
   <dl>
    <dt><code class="parameter">imap</code></dt><dd><p class="para"><span class="classname"><a href="class.imap-connection.php" class="classname">IMAP\Connection</a></span> クラスのインスタンス。</p></dd>
    
     <dt><code class="parameter">message_num</code></dt>
     <dd>
      <p class="para">
       メッセージ番号。
      </p>
     </dd>
    
    
     <dt><code class="parameter">section</code></dt>
     <dd>
      <p class="para">
       パート番号。ピリオドで区切られた整数文字列を指定します。
       これは、IMAP4 仕様における本文パートのリストへのインデックスとなります。
      </p>
     </dd>
    
    
     <dt><code class="parameter">flags</code></dt>
     <dd>
      <p class="para">
       ビットマスクであり、以下の組合わせとなります。
       <ul class="itemizedlist">
        <li class="listitem">
         <span class="simpara">
          <strong><code><a href="imap.constants.php#constant.ft-uid">FT_UID</a></code></strong> - <code class="parameter">message_num</code>は UID である
         </span>
        </li>
        <li class="listitem">
         <span class="simpara">
          <strong><code><a href="imap.constants.php#constant.ft-peek">FT_PEEK</a></code></strong> - 既に設定されていない場合、
          \Seen フラグを設定しない
         </span>
        </li>
        <li class="listitem">
         <span class="simpara">
          <strong><code><a href="imap.constants.php#constant.ft-internal">FT_INTERNAL</a></code></strong> -
          内部フォーマットで文字列を返す。CRLF に正規化しない。
         </span>
        </li>
       </ul>
      </p>
     </dd>
    
   </dl>
  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.imap-fetchbody-returnvalues">
  <h3 class="title">戻り値</h3>
  <p class="para">
   指定されたメッセージ本文中の特定のセクションをテキスト文字列で返します。
   失敗した場合に <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> を返します
  </p>
 </div>


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

    </thead>

    <tbody class="tbody">
     <tr>
 <td>8.1.0</td>
 <td>
  引数 <code class="parameter">imap</code> は、<span class="classname"><a href="class.imap-connection.php" class="classname">IMAP\Connection</a></span>
  クラスのインスタンスを期待するようになりました。
  これより前のバージョンでは、有効な <code class="literal">imap</code> <span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> が期待されていました。
 </td>
</tr>

    </tbody>
   
  </table>

 </div>

 
 <div class="refsect1 seealso" id="refsect1-function.imap-fetchbody-seealso">
  <h3 class="title">参考</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.imap-savebody.php" class="function" rel="rdfs-seeAlso">imap_savebody()</a> - 指定した本文部をファイルに保存する</span></li>
    <li><span class="function"><a href="function.imap-fetchstructure.php" class="function" rel="rdfs-seeAlso">imap_fetchstructure()</a> - 特定のメッセージの構造を読み込む</span></li>
   </ul>
  </p>
 </div>

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