每當我嘗試在變量中回顯另一個變量時,我都會收到“解析錯誤:語法錯誤,意外的‘回顯’(T_ECHO)”,如下所示:$content=. '<p>Paragraph '.echo $variable.' here</p> ';
1 回答

慕工程0101907
TA貢獻1887條經驗 獲得超5個贊
$content .= '<p>Paragraph '.$variable.' here</p> '; echo $content;
應該是這樣的。( .
) 點應位于內容之前=
,而echo
不應位于內容內部
- 1 回答
- 0 關注
- 112 瀏覽
添加回答
舉報
0/150
提交
取消