PHP using Gettext inside <<<EOF string

后端 未结 2 707
野性不改
野性不改 2020-12-08 01:47

I use PHP\'s EOF string to format HTML content without the hassle of having to escape quotes etc. How can I use the function inside this string?



        
2条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-08 02:30

    As far as I can see, you just added heredoc by mistake
    No need to use ugly heredoc syntax here.
    Just remove it and everything will work:

    Hello

提交回复
热议问题