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

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

    Look for any loops or statements are left unclosed.

    I had ran into this trouble when I left a php foreach: tag unclosed.

    
    

    Closing it using the following solved the syntax error: unexpected end of file

    
    

    Hope it helps someone

提交回复
热议问题