tailieunhanh - PHP Developer's Dictionary- P46
PHP Developer's Dictionary- P46:PHP is an open source, server-side, HTML-embedded scripting language used to create dynamically generated Web pages. With an easy-to-use syntax and a large, extensible library of modules, PHP brings together the best of Perl, C++, and other languages. | PHP Developer s Dictionary Answered Flagged Deleted Draft Recent imap_ sort Syntax array imap_sort int imap stream int sort int reverse int flags Description The imap_sort function which was added in PHP returns an array of message headers sorted based on sort . If reverse is 1 the sorting is based on sort but in reverse order. The sort itself can be based on any one of the items in Table . Table . Possible Sort Criteria Value Description 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. The flags are a bit mask of one or more of the items in Table . Table . Possible Bit Mask Values Value Description SE_UID Return UIDs instead of sequence numbers. SE_NOPREFETCH Don t prefetch searched messages. imap_status Syntax object imap_status int imap stream string mailbox int flags IT-SC book 225 PHP Developer s Dictionary Description The imap_status function which was added in PHP returns the status information on a given mailbox . This information is in the form of an object. Possible flags are shown and defined in Table . Table . Flags That Can Be Passed to the imap_status Function Property Description SA_ALL Set all the properties defined in this table. SA_MESSAGES Set status- messages to the number of messages in mailbox. SA_RECENT Set status- recent to the number of recent messages in mailbox. SA_UIDNEXT Set status- uidnext to the next UID to be used in mailbox. SA_UIDVALIDITY Set status- uidvalidity to a constant that changes when UIDs for mailbox may no longer be valid. SA_UNSEEN Set status- unseen to the number of new messages in mailbox . imap_subscribe Syntax int imap_subscribe int imap stream string mailbox Description The imap_subscribe function enables you to subscribe to a new mailbox on the imap_stream . If successful the function returns 1 otherwise
đang nạp các trang xem trước