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

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

    also, look for a comment // that breaks the closing curly brace

    if (1==1) { //echo "it is true"; }

    the closing curly brace will not properly close the conditional section and php won't properly process the remainder of code.

提交回复
热议问题