PHP: How to hide/display chunks of HTML

前端 未结 4 1197
误落风尘
误落风尘 2021-02-06 09:18

I\'m hoping someone can help with this very newbie question. I\'ve just come from an ASP.Net environment where it was easy to hide or show chunks of HTML. For example: Different

4条回答
  •  爱一瞬间的悲伤
    2021-02-06 09:44

    Try this:

    
        ...

    You can use PHP tags like wrapped around HTML and based on the conditional the HTML will either be rendered or it won't.

提交回复
热议问题