Syntax error, unexpected T_SL

后端 未结 6 2779
北海茫月
北海茫月 2021-02-20 08:34

I\'m fairly new to php and I\'m using a script that creates a function called the \"mime_mailer\" which essentially allows me to use PHP to send emails that are able to be desig

6条回答
  •  甜味超标
    2021-02-20 09:24

    It had the same exact same issue but mine was because I had whitespace at the end of my heredoc on the top line:

    $var = <<< HTML(whitespaces here caused the error)
    stuff in here
    

    HTML;

    Source: http://realtechtalk.com/_syntax_error_unexpected_T_SL_in_PHP_Solution-2109-articles

提交回复
热议问题