Home >Backend Development >PHP Tutorial >php中引用里引用$ 如何写呢

php中引用里引用$ 如何写呢

WBOY
WBOYOriginal
2016-06-13 12:04:181209browse

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";

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn