I use the "OR" operator "|" to match one of the words of the $name variable:
$name = "one five six two";
if (preg_match('/(one|two)/i', $name)) {return true;}
What operator should I use with preg_match to have an "AND" condition if those words are inside of $name?
For example,
if (preg_match('/(two "AND" five)/i', $name)) {return true;}