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

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

WBOY
Release: 2016-06-13 12:04:18
Original
1208 people have browsed it

php中引用里引用$ 怎么写呢
代码如下;

<?php <br />  $purl=$output['goods']['gc_id'] ;<br />  include (' .php');<br />   ?>
Copy after login


其中想 include $purl.php 这个值 ,例如 $purl=1669,则 include 1669.php,可怎么写也写不对呢,加了一晚上班,是不是脑子不转了,急需,谢谢指教
------解决方案--------------------
include ($purl.'.php');
Copy after login

------解决方案--------------------
include  $purl.'.php';

include  "$purl.php";

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template