calmchess Posted November 30, 2009 Share Posted November 30, 2009 The following searches an array for a specific string which works well except it seems to be case sensitive how would I make it case insensitive? I could be wrong too about it being case sensitive.....will you please clear this up for me? if(array_search($adminname.":".$picpath.":".$link, $arr_unser)!==FALSE){ echo "string found" } } Link to comment https://forums.phpfreaks.com/topic/183420-array-serach-case-sensitive/ Share on other sites More sharing options...
aeroswat Posted November 30, 2009 Share Posted November 30, 2009 Use the strtolower function to convert both to lowercase and compare. Link to comment https://forums.phpfreaks.com/topic/183420-array-serach-case-sensitive/#findComment-968162 Share on other sites More sharing options...
calmchess Posted November 30, 2009 Author Share Posted November 30, 2009 yeah that strtolower function is just what i needed thanks for the reply Link to comment https://forums.phpfreaks.com/topic/183420-array-serach-case-sensitive/#findComment-968166 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.