lundi 17 septembre 2018

Determining which part of the conditional is true in an `if` statement

Suppose I have an if statement in PHP, like this:

if($var || $var2 || $var3){
  //code
}

How do I know which variable triggered the if statement?

Aucun commentaire:

Enregistrer un commentaire