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 Quote Link to comment 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] Quote Link to comment 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... Quote Link to comment 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] Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.