scheols Posted August 1, 2006 Share Posted August 1, 2006 how can i check an array thats case sensitive?like BDDDD bdddd BdDdD BDDdd bDbDD etc.. i want them to be able to check with a good wordfiller Link to comment https://forums.phpfreaks.com/topic/16179-checking-arrays-casesensitive/ Share on other sites More sharing options...
hackerkts Posted August 1, 2006 Share Posted August 1, 2006 Not sure is this what you looking for,[code]preg_match("/words/", "text here"); // case-insensitive[/code][code]preg_match("/words/", "text here"); // case-sensitive[/code] Link to comment https://forums.phpfreaks.com/topic/16179-checking-arrays-casesensitive/#findComment-66858 Share on other sites More sharing options...
zq29 Posted August 1, 2006 Share Posted August 1, 2006 You could run your array through strtolower() so everything will be in lowercase... Link to comment https://forums.phpfreaks.com/topic/16179-checking-arrays-casesensitive/#findComment-66862 Share on other sites More sharing options...
scheols Posted August 1, 2006 Author Share Posted August 1, 2006 meh i wont do non of them -_-str_ireplace() works nicely[quote][code=php:0]<?$s1 = array("http://invisionfree","invisonfree","invisionfree.com","http://invisionfree.com/","the","quick","brown", "fox", "jumped", "over", "the","lazy","dog");$t[post] = str_ireplace($s1, "*BLEEP*", "$t[post]");?>[/code][/quote] Link to comment https://forums.phpfreaks.com/topic/16179-checking-arrays-casesensitive/#findComment-66865 Share on other sites More sharing options...
zq29 Posted August 1, 2006 Share Posted August 1, 2006 Please refrain from using vulgar words on the forums, they're not necessary to convey your message. Thanks. Link to comment https://forums.phpfreaks.com/topic/16179-checking-arrays-casesensitive/#findComment-66872 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.