Is there harm in outputting html vs. using echo?

前端 未结 4 1592
梦毁少年i
梦毁少年i 2020-12-21 11:13

I have no idea really how to say this, but I can demonstrate it:

Content Title\";
}
?>

4条回答
  •  囚心锁ツ
    2020-12-21 11:33

    There are no relevant differences performance-wise. But you won't be able to use variables in the latter, and it looks less clean IMO. With large blocks, it also becomes extremely difficult to keep track of {} structures.

    This is why the following alternative notation exists:

    
    

    Content Title

    it's marginally more readable.

提交回复
热议问题