I have a largish array of string that I want to use as a look-up.
I am using in_array(), but I suspect its doing a simple loop through - does anyone know whether the in_array() algo uses a bsearch algo?
I have a largish array of string that I want to use as a look-up.
I am using in_array(), but I suspect its doing a simple loop through - does anyone know whether the in_array() algo uses a bsearch algo?