Parse error: syntax error, unexpected end of file in
This question already has an answer here:
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
上一篇: 解析错误:语法错误,意外'('
下一篇: 解析错误:语法错误,文件意外结束