dimanche 23 août 2015

multiple or operator conditions in if statemet

i want to show some text if condition is true like this

    if ($imageurl=="" OR ($w != "1920" AND $h != "1080") OR ($w != "1440" AND $h != "900") OR ($w != "1366" AND $h != "768") OR ($w != "1280" AND $h != "1024") OR ($w != "1280" AND $h != "800") OR ($w != "1024" AND $h != "768") OR ($w != "800" AND $h != "600") OR ($w != "360" AND $h != "640")) 

{
   text to print   
}

$w = width $h = height

Please tell me how to correct above condition

Aucun commentaire:

Enregistrer un commentaire