array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'function.imap-msgno.php', 1 => 'imap_msgno', 2 => 'Gets the message sequence number for the given UID', ), 'up' => array ( 0 => 'ref.imap.php', 1 => 'IMAP 函数', ), 'prev' => array ( 0 => 'function.imap-mime-header-decode.php', 1 => 'imap_mime_header_decode', ), 'next' => array ( 0 => 'function.imap-mutf7-to-utf8.php', 1 => 'imap_mutf7_to_utf8', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/imap/functions/imap-msgno.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

imap_msgno

(PHP 4, PHP 5, PHP 7, PHP 8)

imap_msgnoGets the message sequence number for the given UID

说明

imap_msgno(IMAP\Connection $imap, int $message_uid): int

Returns the message sequence number for the given message_uid.

This function is the inverse of imap_uid().

参数

imap

IMAP\Connection 实例。

message_uid

The message UID

返回值

Returns the message sequence number for the given message_uid.

更新日志

版本 说明
8.1.0 现在 imap 参数接受 IMAP\Connection 实例,之前接受有效的 imap resource

参见