Answers for "how to check for multiple words in a string in php"

PHP
4

php find multiple strings in string

if(preg_match('(bad|naughty)', $data) === 1) { }
Posted by: Guest on April-03-2020

Code answers related to "how to check for multiple words in a string in php"

Browse Popular Code Answers by Language