imap_msgno

This function returns the message sequence number for the given UID (PHP 3 >= 3.0.3, PHP 4, PHP 5)
int imap_msgno ( resource imap_stream, int uid )

This function returns the message sequence number for the given uid. It is the inverse of imap_uid().

See also imap_uid().