$myString = 'Hello Learn Tech Tips (Zidane)?'; if (strpos($myString, 'Zidane') !== false) { echo "This string contains Zidane"; }
if (strpos($search, ' -') !== false) { echo 'There is exclude pattern "-" in search expression'; }