<?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 => 'zh',
  ),
  'this' => 
  array (
    0 => 'function.imap-uid.php',
    1 => 'imap_uid',
    2 => 'This function returns the UID for the given message sequence number',
  ),
  'up' => 
  array (
    0 => 'ref.imap.php',
    1 => 'IMAP 函数',
  ),
  'prev' => 
  array (
    0 => 'function.imap-timeout.php',
    1 => 'imap_timeout',
  ),
  'next' => 
  array (
    0 => 'function.imap-undelete.php',
    1 => 'imap_undelete',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/imap/functions/imap-uid.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.imap-uid" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">imap_uid</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">imap_uid</span> &mdash; <span class="dc-title">This function returns the UID for the given message sequence number</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.imap-uid-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>imap_uid</strong></span>(<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>, <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>): <span class="type"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>

  <p class="para rdfs-comment">
   This function returns the UID for the given message sequence
   number. An UID is a unique identifier that will not change over
   time while a message sequence number may change whenever the
   content of the mailbox changes.
  </p>
  <p class="para">
   This function is the inverse of <span class="function"><a href="function.imap-msgno.php" class="function">imap_msgno()</a></span>.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.imap-uid-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">
       The message number.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.imap-uid-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   The UID of the given message.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.imap-uid-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 notes" id="refsect1-function.imap-uid-notes">
  <h3 class="title">注释</h3>
  <blockquote class="note"><p><strong class="note">注意</strong>: 
   <p class="para">
    This function is not supported by POP3 mailboxes.
   </p>
  </p></blockquote>
 </div>

 <div class="refsect1 seealso" id="refsect1-function.imap-uid-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.imap-msgno.php" class="function" rel="rdfs-seeAlso">imap_msgno()</a> - Gets the message sequence number for the given UID</span></li>
   </ul>
  </p>
 </div>

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