Issue with heredoc and PHP

后端 未结 2 1336
再見小時候
再見小時候 2021-01-27 06:58

I am following The book \"Beginning PHP, Apache, MySQL web development\" by Wrox. I have been following it verbatim and for some reason I am having a issue with the code. The ed

2条回答
  •  萌比男神i
    2021-01-27 07:27

    Closing heredoc statement must be at the very first position in the string:

    ENDHTML;    // works
      ENDHTML;  // won’t work
    

提交回复
热议问题