+ 1
whats wrong with my syntax ?
html> <head> </head> <body> <p> <?php // Write your if/elseif/else statement here! $age = 21; if($age== 21) { echo"the condition is true"; } else if($age!=21) { echo "the condition is false!"; } else { echo "thecondition is false!"; } ?> </p> </body> </html>
2 odpowiedzi
+ 13
You should close the <html> tag but your syntax is correct and it works fine.
Be sure to run it in the PHP Code Playground. :)
+ 2
Nothing just html tag don't have <