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