imap_sort
(PHP 4, PHP 5, PHP 7, PHP 8)
imap_sort — Gets and sort messages
Parameters
-
imap An IMAP\Connection instance.
criteria
-
Criteria can be one (and only one) of the following:
reverse
-
Whether to sort in reverse order.
flags
-
The flags are a bitmask of one or more of the
following:
search_criteria
-
IMAP2-format search criteria string. For details see
imap_search().
charset
-
MIME character set to use when sorting strings.
Return Values
Returns an array of message numbers sorted by the given
parameters, or false on failure.