It is necessary to do a search in alphabetical order, google did not find anything sensible, he decided to write from scratch for CI. And the question arose whether it is possible to check whether the value is present in the array without case-dependent. The in_array () function unfortunately or fortunately is case-sensitive, can there be other ways, only without writing separate functions ?!

And tips on writing alphabetic algorithms will also be very helpful. Who can developed already, will share experience?

Thank you in advance!

    1 answer 1

    $keys = array_change_key_case(array_flip($haystack)); if (isset($keys[strtolower($needle)])) { // ... } 

    But it is better not to do so :)