vendredi 2 juin 2017

PHP IF is not with multiple AND

I have a logic problem here with my if else statement.

If URL is not the same as newurl AND if newurl is not Array AND if NEWURL is not notfound than do this ....

This isn't working and I don't know where the logic is wrong here.

NEWURL is Array i.e. but the script still takes this if instead of the else.

 if (($url != $newurl) && ($newurl != "Array") && ($newurl != 'notfound')) { dothis } else{ dothat }

Aucun commentaire:

Enregistrer un commentaire