SyntaxFix
Write A Post
Hire A Developer
Questions
str_replace is considerably faster.
$find_letters = array('a', 'c', 'd'); $string = 'abcdefg'; $match = (str_replace($find_letters, '', $string) != $string);