This is my code,
$em= strpos($str, 'something');
$em2= strpos($str, 'something2');
$em3= strpos($str, 'something3');
////////triggering only if either of them exist
if (($em!== false)||($em2!== false)||($em3!== false)) {
some action
}
Is my coding correct? or I am missing anything? Please suggest.
Should it be like ?
if (!(($em== false)||($em2== false)||($em3 == false))) {