I know that you can do if...else using one line, without brackets, like this:
if ($foo == true)
echo "True";
else
echo "False";
My question is this: what if you needed to put another if statement after the first? If you were to do it like the previous example; i.e. this:
if ($foo == true)
if ($bar == true)
echo "True";
else
echo "False";
Would this work as expected? Will PHP give a parse error? Or will it just echo true regardless of whether or not $bar is true?