When do I use if/endif versus If{}?

后端 未结 6 812
暗喜
暗喜 2021-02-08 08:30

Well the question is self explanatory.

In PHP when do I use the if/endif notation instead of the standard if(something){} notation?

Exa

6条回答
  •  青春惊慌失措
    2021-02-08 09:01

    It is a stylistic choice. They are analogous and one is not better than another.

    The former can be good in certain circumstances because it may be easier to read when mired in the middle of an HTML block set.

提交回复
热议问题