php中引用里引用$ 怎么写呢
代码如下;
<?php <br /> $purl=$output['goods']['gc_id'] ;<br /> include (' .php');<br /> ?>
登入後複製
其中想 include $purl.php 这个值 ,例如 $purl=1669,则 include 1669.php,可怎么写也写不对呢,加了一晚上班,是不是脑子不转了,急需,谢谢指教
------解决方案--------------------include ($purl.'.php');
登入後複製
------解决方案--------------------include $purl.'.php';
或
include "$purl.php";