美文网首页
关于syntax error, unexpected 'endf

关于syntax error, unexpected 'endf

作者: hello大象 | 来源:发表于2018-01-12 17:46 被阅读0次

    在html中写原生php的foreach 报错,查看BUG运行目录临时文件发现:



    貌似没什么错误,但是报错位置处肯定无错。
    看文档:foreach 开头要用到:而不是;
    即foreach结束时应该是“:” (冒号), 而不是分号(";"), 我没注意写错了。
    修改如下:



    OK:

    相关文章

      网友评论

          本文标题:关于syntax error, unexpected 'endf

          本文链接:https://www.haomeiwen.com/subject/oxnfoxtx.html