The whole expression of an if
condition needs to be put in parentheses. But you’re already closing that part of the if
statement after the first false
:
if(stripos($nerde, $hf) !== false) && (stripos($nerde, $rs) !== false){
^ ^___________^ ^
|______________________________|
Write it this way:
if (stripos($nerde, $hf) !== false && stripos($nerde, $rs) !== false)
Or you put parentheses around the whole expression (Ignacio Vazquez-Abrams suggested):
if ((stripos($nerde, $hf) !== false) && (stripos($nerde, $rs) !== false))