将它们包装在
{}:${"file" . $i} = file($filelist[$i]);工作实例
使用
${}是创建动态变量的一种方法,简单的示例:${'a' . 'b'} = 'hello there';echo $ab; // hello there
将它们包装在
{}:${"file" . $i} = file($filelist[$i]);使用
${}是创建动态变量的一种方法,简单的示例:${'a' . 'b'} = 'hello there';echo $ab; // hello there