+ 7

NO SEMICOLON BUT NO ERROR IT WORKED WHY?

in the exercise it was written that if I dont put semicoln ; at the end of echo "...."; it will result in error I experiment it by myself it gets output and no error pop up whyy?

19th Jul 2018, 9:28 PM
Rabda Alice
Rabda Alice - avatar
2 ответов
+ 3
I tried this in Code Playground and got slapped in the face : ) I guess SoloLearn version is old ... ? <?php echo "<p>Is it true PHP doesn't require semicolon anymore?<br />" echo "Is that a fact? <br />maybe curly brackets be gone next ... XD</p>" ?>
20th Jul 2018, 4:43 PM
Ipang
+ 2
php isn't sever in many rules of syntaxe ..
20th Jul 2018, 7:58 AM
Moez Missaoui
Moez Missaoui - avatar