我正在尝试将PHP代码添加到变量中,这可能吗?
PHP
我尝试了下面的代码,但没有用。
$adcode = '<?php print $banners[0] ?>';
您可以使用此:
$adcode = $banners[0];