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

后端 未结 16 1928
孤城傲影
孤城傲影 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:48

    Also, another case where it is hard to spot is when you have a file with just a function, I know it is not a common use case but it is annoying and had to spot the error.

    The file above returns the erro Parse error: syntax error, unexpected end of file in while the below does not.

提交回复
热议问题