« imap_mime_header_decode
imap_mutf7_to_utf8 »

imap_msgno

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

imap_msgno — 指定した UID のメッセージ番号を返す

説明

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

指定した message_uid のメッセージ番号を返します。

この関数は、imap_uid() の逆の動作となります。

パラメータ

imap

IMAP\Connection クラスのインスタンス。

message_uid

メッセージの UID。

戻り値

指定した message_uid のメッセージ番号を返します。

変更履歴

バージョン 説明
8.1.0 引数 imap は、IMAP\Connection クラスのインスタンスを期待するようになりました。 これより前のバージョンでは、有効な imap resource が期待されていました。

参考

  • imap_uid() - 指定したメッセージシーケンス番号の UID を返す

関連キーワード:
imap   メッセージ   番号   message   msgno   Connection   インスタンス   期待   mime   header   decode   mutf   履歴   resource   参考   シーケンス
関連する関数・ページ:
function.imap-uid   function.imap-fetchheader   function.imap-expunge   function.imap-body   function.imap-headers   function.imap-savebody