mercredi 16 novembre 2016

Logic in if statement with numbers PHP

Can someone explain what's happening here:

if(2 && 5 < 4)

If i've got for example

$x = 2 && 3;

and var_dump($x) it gives boolean(true) no matter what numbers are. But here it looks like numbers are comparing to 4 one by one.

Aucun commentaire:

Enregistrer un commentaire