php echo vs open&close tag

后端 未结 6 1084
清歌不尽
清歌不尽 2020-12-01 11:16

Just to clarify: The issues \"echo vs print\" and \"double quotes vs single quotes\" are perfectly understood, this is about another thing:

Are there any re

6条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-01 11:39

    First one is more readable from programming point of view, but the second one allows you to open the file in some WYSIWYG HTML editor and change the page design.

    I prefer the second option because it is much easier to tell your designer that "this part of the page will behave like that", than "this piece of code does that"

提交回复
热议问题