[SOLVED] Multiple conditions in an IF statement.
Posted: Thu Aug 30, 2007 3:47 am
Hi.
I was hoping the following code would work:
But it throws out a parse error. Is there a shorter way to write this, rather than:
Regards,
I was hoping the following code would work:
Code: Select all
$a = 1; $b = 1; $c = 1; $d = 1;
if ($a == $b == $c == $d)
echo "THey all equal 1";
Code: Select all
if ($a == $b && $b == $c && $c == $d)