$string = "I look for erotic pics";if (preg_match( '~(shit|horny|erotic)~i', $string)) {echo "found";}