[Solved] PHP String contains multiple words with RegEx | QuizCu…
https://www.quizcure.com/php/php-string-contains-multiple-words-with-regex-examples
Check if the string contains multiple words using the preg_match function $pattern: Required param. Pattern to check in a given string $givenString: Required Param. givenString is text in which search for patterns needs to be performed. $matchesFound: Its optional parameter. It will be populated with search results if this param is provided. $flags: Optional param. $offset: Optional param. Return: 1 => If pattern matched 0=> If pattern doesn�t meet False => Once failed
$pattern: Required param. Pattern to check in a given string
$givenString: Required Param. givenString is text in which search for patterns needs to be performed.
$matchesFound: Its optional parameter. It will be populated with search results if this param is provided.
$flags: Optional param.
$offset: Optional param.
Return: 1 => If pattern matched 0=> If pattern doesn�t meet False => Once failed
DA: 68 PA: 80 MOZ Rank: 44