Parse error: Syntax error, unexpected end of file in my PHP code

后端 未结 16 1665
孤城傲影
孤城傲影 2020-11-22 05:27

I got an error:

Parse error: syntax error, unexpected end of file in the line

With this code:


    

        
16条回答
  •  渐次进展
    2020-11-22 05:38

    You should avoid this (at the end of your code):

    {?>
    

    and this:

    You shouldn't put brackets directly close to the open/close php tag, but separate it with a space:

    { ?>
    

    also avoid and use

提交回复
热议问题