HTML into PHP Variable (HTML outside PHP code)

后端 未结 7 2357
一整个雨季
一整个雨季 2020-12-04 16:08

I am new to php and wondering if I can have something like this:




   ...
            


        
相关标签:
7条回答
  • 2020-12-04 16:38

    I think you want heredoc syntax.

    For example:

    $var = <<<HTML
    <html>
       <head>
    random crap here
    </html>
    HTML;
    
    0 讨论(0)
提交回复
热议问题