vendredi 17 février 2017

if statement passing value to nested if statement

Can't seem to get this to work, maybe I'm just going about it all wrong.

$a=1;
$b=1;
$c=0;
$d=1;
$e=0;

if ($a == 1 && $b == if ($c == 0) { $d } else { $e } ) { echo "Yes"; } else { echo "No";}

Aucun commentaire:

Enregistrer un commentaire