<?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-utf7-encode.php',
    1 => 'imap_utf7_encode',
    2 => 'ISO-8859-1 文字列を修正版 UTF-7 テキストに変換する',
  ),
  'up' => 
  array (
    0 => 'ref.imap.php',
    1 => 'IMAP 関数',
  ),
  'prev' => 
  array (
    0 => 'function.imap-utf7-decode.php',
    1 => 'imap_utf7_decode',
  ),
  'next' => 
  array (
    0 => 'function.imap-utf8.php',
    1 => 'imap_utf8',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'reference/imap/functions/imap-utf7-encode.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.imap-utf7-encode" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">imap_utf7_encode</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">imap_utf7_encode</span> &mdash; <span class="dc-title">ISO-8859-1 文字列を修正版 UTF-7 テキストに変換する</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.imap-utf7-encode-description">
  <h3 class="title">説明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>imap_utf7_encode</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$string</code></span>): <span class="type"><a href="language.types.string.php" class="type string">string</a></span></div>

  <p class="para rdfs-comment">
   <code class="parameter">string</code> を修正版 UTF-7 テキストに変換します。
  </p>
  <p class="para">
   この関数は、ある種の非 ASCII 文字を含むメールボックス名をエンコード
   する際に必要となります。
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.imap-utf7-encode-parameters">
  <h3 class="title">パラメータ</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">string</code></dt>
     <dd>
      <p class="para">
       ISO-8859-1 文字列。
      </p>
     </dd>
    
   </dl>
  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.imap-utf7-encode-returnvalues">
  <h3 class="title">戻り値</h3>
  <p class="para">
   <code class="parameter">string</code> を修正版 UTF-7 でエンコードした文字列を返します。
   このエンコーディングについては
   <a href="https://datatracker.ietf.org/doc/html/rfc2060" class="link external">&raquo;&nbsp;RFC 2060</a>,
   section 5.1.3 で定義されています。
  </p>
 </div>

 <div class="refsect1 seealso" id="refsect1-function.imap-utf7-encode-seealso">
  <h3 class="title">参考</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.imap-utf7-decode.php" class="function" rel="rdfs-seeAlso">imap_utf7_decode()</a> - 修正版 UTF-7 エンコードされた文字列をデコードする</span></li>
   </ul>
  </p>
 </div>

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