jeudi 5 janvier 2017

Triple equal operator fails when checking for one of variants but they are the same type [duplicate]

This question already has an answer here:

$type = 'bravo';

if ($type === ('alpha' || 'bravo')) {
    echo $type;
}

This never returns anything. Why this is happening?

Aucun commentaire:

Enregistrer un commentaire