imap_search and multiple criteria

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Does the imap_search support multiple criteria?

 

I've got the following successfully returning the correct results:

 

<?php

$search[0] = "BODY \"test\"";

$search[1] = "SUBJECT \"test\"";

 

foreach ($search as $criteria) {

            $search_result[]=$imap_search($mailbox,$criteria,$SE_UID);

}

?>

 

However, when you try and put them in the same search 

e.g. $search = "BODY \"test\" OR SUBJECT \"test\""

 

It fails...

 

The only way in which I can see this can be done is by joining the various
arrays that are returned.  Is this best?

 

Thanks

Nunners


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux