This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center




7年前关闭。




添加以下行时,我收到意外的T_ECHO警告:
<div id="counter"><?php (function_exists('fbshare_manual')) echo fbshare_manual(); ?></div>

我不确定什么是T_ECHO,怎么了。有什么建议?

最佳答案

您似乎缺少if

<div id="counter"><?php if (function_exists('fbshare_manual')) echo fbshare_manual(); ?></div>

说明:T_ECHO代表“echo”关键字。 “意外的T_ECHO”表示该单词不应该出现。 (如果没有if,PHP会将parens和echo中的内容视为两个单独的语句,并且期望在两者之间使用分号或其他内容。)

关于php - 意外的T_ECHO警告? ,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/5379819/

10-09 01:30