[PHP] RE: What search algorithm does in_array() use?

2007-01-30 Thread Ken Dozier
BINGO! I just tried your array_flip() suggestion, Greg. Awesome! Thanks for the tip; I wouldn't have thought of that. Ken. -Original Message- From: Gregory Beaver [mailto:[EMAIL PROTECTED] Sent: Monday, January 29, 2007 4:54 PM To: Ken Dozier Cc: php-general@lists.php.net Su

RE: [PHP] What search algorithm does in_array() use?

2007-01-30 Thread Ken Dozier
time being and then come back to it later. Thanks again for all of your help. Ken. -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Monday, January 29, 2007 6:13 PM To: Ken Dozier Cc: php-general@lists.php.net Subject: Re: [PHP] What search algorithm does in_

[PHP] What search algorithm does in_array() use?

2007-01-29 Thread Ken Dozier
Does in_array() use a search algorithm (i.e., binary search), or does it check sequentially each element in the array? I am using in_array() within a while{} loop to check query results against an access-list array to produce a third array containing items that successfully passed the comparison t