Control Flow: switch last lesson


#1

Hi my name is Gary, could figure out the introduction part so I did it here.
I'm on the last lesson in Control Flow Look Back
I have entered the PHP code and keep getting this error. I have tried different ways with different errors.
Here is my code now with the error I'm getting please help.
7 <?php
8 if (4 > 8) {
9 echo "This condition is false";
10 } elseif (4 == 8) {
11 echo "This condition is false";
12 } else {
13 echo "Both condition are false";
14 }
15
16 ?>

This is the error I'm getting: Parse error: syntax error, unexpected $end on line 13

`


#2

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.