endif.如果我删除它,则会引发指向代码中最后一个 endif 的相同错误.

endif. If I remove it the same error is thrown pointing to the last endif in the code.

endif; 语句,但它会引发以下错误:

endif; statements and it throws the following error instead:

<?

short_open_tag 可能未在 中启用.您可以设置 short_open_tag ,但是为了更便携,请更改:

short_open_tag is probably not enabled in . You could set short_open_tag , however to be more portable, change:

  <? endwhile; ?>

  <?

<? 更改为 <?.

<? to <?.

注意:

<? and <?) to maximize compatibility.

这篇关于最近的解析错误:语法错误,意外的“endif"(T_ENDIF)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-19 17:36