Case insensitive PHP in_array()
Simple function for using in_array() with case insensitive querying. function i_in_array($needle, $haystack) { return in_array(strtolower($needle), array_map("strtolower", $haystack)); }
A bunch of ramblings about PHP programming, JQuery, MySQL and other 'stuff'
Simple function for using in_array() with case insensitive querying. function i_in_array($needle, $haystack) { return in_array(strtolower($needle), array_map("strtolower", $haystack)); }
In MySQL I use IF(value,then,else) quite often, but in a new project I am doing I need to do the…
If you need to use :contains() as a selector but need a case insensitive one, you need to extend jQuery…