Forum und email

imap_sort

(PHP 4, PHP 5)

imap_sort — 메시지 헤더의 배열을 정렬한다

Description

array imap_sort ( int $stream , int $criteria , int $reverse , int $options )

주어진 인수로 정렬된 메시지 번호의 배열을 돌려준다.

Reverse 인수는 역정렬(reverse-sorting)하기 위해서는 1의 값을 갖는다.

기준(Criteria)은 다음중 하나(오직 하나)가 될 수 있다:

SORTDATE        message Date
SORTARRIVAL     arrival date
SORTFROM        mailbox in first From address
SORTSUBJECT     message Subject
SORTTO          mailbox in first To address 
SORTCC          mailbox in first cc address 
SORTSIZE        size of message in octets
      

플래그(flags)는 다음중 하나이상의 비트마스크(bitmask)값이다:

SE_UID          Return UIDs instead of sequence numbers
SE_NOPREFETCH   Don't prefetch searched messages.