should I put a semi-colon after a single PHP statement?

后端 未结 5 717
南笙
南笙 2021-01-07 20:13

e.g.

some html....

more html...

?

5条回答
  •  萌比男神i
    2021-01-07 20:40

    It might be better to always use a semi-colon :

    • Lowers the probability of errors if you need to extend your code in the specific section.
    • Improves readability of code

提交回复
热议问题