直接include是不行的,因为include() 语句包括并运行指定文件。当然你可以将t.php的执行结果返回。如:
t.php
<?php
$tmp = "test";
return $tmp;
?>
则$count = include("./t.php");之后,$count的值就为"test"了。
t.php
<?php
$tmp = "test";
return $tmp;
?>
则$count = include("./t.php");之后,$count的值就为"test"了。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货