Does in_array() use a binary search algorithm?

Posted by morpheous on Stack Overflow See other posts from Stack Overflow or by morpheous
Published on 2010-05-13T10:46:41Z Indexed on 2010/05/13 10:54 UTC
Read the original article Hit count: 124

Filed under:

I have a largish array of string that I want to use as a lookup.

I a using in_array(), but I suspect its doing a simple loop through - does anyone know whether the in_array() algo uses a bsearch algo?

© Stack Overflow or respective owner

Related posts about php