imap_search

PHP 4, PHP 5, PHP 7, PHP 8
imap_search - This function returns an array of messages matching the given search criteria
Manual
Code Examples

Example #1 imap_search example

Result: Array ( [0] => 4 [1] => 6 [2] => 11 ) Array ( [0] => 1 [1] => 2 [2] => 3 [3] => 4 [4] => 5 [5] => 6 ) Array ( [0] => 1 [1] => 4 [2] => 6 [3] => 8 [4] => 11 [5] => 12 )
PHP Version:


Function imap_search:

IMAP, POP3 and NNTP Functions

Most used PHP functions