PHP语法错误 - 无法搞清楚

Wul*_*ulf 3 php mysql syntax

我已经看了一段时间了.我如何修复语法?

echo("<a class=\"button\" href=\"viewcomment.php?id=".$id."> Comment(".$numberComments;.")</a>");
Run Code Online (Sandbox Code Playgroud)

Joh*_*Woo 5

删除额外 semicolon

echo("<a class=\"button\" href=\"viewcomment.php?id=".$id."> Comment(".$numberComments.")</a>");
                                                                                      ^ here
Run Code Online (Sandbox Code Playgroud)

或直接,

echo("<a class=\"button\" href=\"viewcomment.php?id=$id> Comment($numberComments)</a>");
Run Code Online (Sandbox Code Playgroud)