Hi all. Im learning more functions thanks to this site and php.net so now im recoding my user registration system to block bad words and such.
Im finding this to block the actual word, for example "@!#$" but I tried with "shithead" and it went through, im using:
if (strstr("bitch cock cum cunt dick @!#$ pussy @!#$ slut whore ass wh0re queer fag sex penis vagina webmaster admin administrator operator oper moderator","$username")) {
$register_error = "This username is not acceptable, try something more mature.";
}
If you could point me out to the function or method of catching similarites or wildcards id be greatful.