php echo vs open&close tag

后端 未结 6 1082
清歌不尽
清歌不尽 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:41

    The best one is a template engine.

    But, I think echo is way more cleaner and more readable (at least in this case - as pointed out in comments, it depends), than opening and closing tags everywhere (I don't know too much about PHP internals to tell which one is faster, though).

提交回复
热议问题