Parse error: syntax error, unexpected T_SL on line 23

前端 未结 6 853
逝去的感伤
逝去的感伤 2021-01-01 12:27

I am getting this error:

Parse error: syntax error, unexpected T_SL on line 23

Here is line 23:

$selectorder =         


        
6条回答
  •  情书的邮戳
    2021-01-01 13:09

    It's called "Heredoc syntax", and it lets you specify large strings without using quotes. In this case, it looks like you're using it to put JavaScript code into a variable. Since you started the string with <<, you should be able to finish it with ORDER;, as you have — but you need to make sure that ORDER; occurs at the start of a line, with no whitespace before it.

提交回复
热议问题