Parse error: syntax error, unexpected end of file in

This question already has an answer here:

  • PHP parse/syntax errors; and how to solve them? 13 answers

  • See alternative PHP syntax. You cannot use it like this <?php foreach ($fixtures as $fixture) { ?> <?php } ?> rather <?php foreach ($fixtures as $fixture): ?> <?php endforeach; ?> <?php foreach ($fixtures as $fixture): ?> <?php endforeach; ?>


    You should avoid this {?> and this: <?php}

    You shouldn't put brackets directly close to the open/close php tag, but it separate with a space: { ?> <?php { also avoid <? and use <?php

    链接地址: http://www.djcxy.com/p/69488.html

    上一篇: 解析错误:语法错误,意外'('

    下一篇: 解析错误:语法错误,文件意外结束