Jump to content

Archived

This topic is now archived and is closed to further replies.

scheols

checking arrays casesensitive

Recommended Posts

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

Share this post


Link to post
Share on other sites
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]

Share this post


Link to post
Share on other sites
You could run your array through strtolower() so everything will be in lowercase...

Share this post


Link to post
Share on other sites
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]

Share this post


Link to post
Share on other sites
Please refrain from using vulgar words on the forums, they're not necessary to convey your message. Thanks.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.