我有一些基本的 PHP 代码:
$raceramps56["short"] = "My Test Product";
$leftMenu =
'<div class="leftMenuProductButton"><?PHP echo $raceramps56["short"] ?></div>';
不会回显 PHP 代码,仅回显元素。我尝试过类似的事情
<div class="leftMenuProductButton">' . <?PHP echo $raceramps56["short"] ?>. '</div>';
哪个刚刚返回Parse error: parse error, unexpected '<'
所以我的问题是,我该如何让它发挥作用,或者采取另一种方法?
尝试这个
$raceramps56["short"] = "My Test Product";
$leftMenu ='<div class="leftMenuProductButton">'.$raceramps56["short"].'</div>';
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)