0
这是我的脚本:如何在PHP文件()两个变量结合
$t = file ('../../../../t.txt');
echo $t[1];
所以我想给“../../../../”像$ PATH变量。问题是,要将合并成一个php字符串或正确的代码。
例子:
$path = '../../../../';
$t = file ('($path)t.txt');
echo $t[1];
可惜,这是行不通的。有人能写我如何做到这一点吗?
了解如何使用[拼接](http://php.net/manual/en/language。 operators.string.php) – Naruto