php man page for imap_sort

Query: imap_sort

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

IMAP_SORT(3)								 1							      IMAP_SORT(3)

imap_sort - Gets and sort messages

SYNOPSIS
array imap_sort NULL (resource $imap_stream, int $criteria, int $reverse, [int $options], [string $search_criteria], [string $charset = NIL])
DESCRIPTION
Gets and sorts message numbers by the given parameters.
PARAMETERS
o $ imap_stream -An IMAP stream returned by imap_open(3). o $criteria - Criteria can be one (and only one) of the following: o SORTDATE - message Date o SORTARRIVAL - arrival date o SORTFROM - mailbox in first From address o SORTSUBJECT - message subject o SORTTO - mailbox in first To address o SORTCC - mailbox in first cc address o SORTSIZE - size of message in octets o $reverse - Set this to 1 for reverse sorting o $options - The $options are a bitmask of one or more of the following: o SE_UID - Return UIDs instead of sequence numbers o SE_NOPREFETCH - Don't prefetch searched messages o $search_criteria - o $charset -
RETURN VALUES
Returns an array of message numbers sorted by the given parameters. PHP Documentation Group IMAP_SORT(3)
Related Man Pages
imap_headerinfo(3) - php
imap_listscan(3) - php
imap_reopen(3) - php
imap_search(3) - php
ciderwebmail::model::imapclient(3pm) - debian
Similar Topics in the Unix Linux Community
Rules for Homework & Coursework Questions Forum
Please Welcome Don Cragun as Lead Moderator
Please Welcome Ravinder Singh to the Moderation Team
Denial Of Service Attack Update
Please Welcome Nicki Paul to the Moderator Team!