///文件写入
$file = fopen("test.txt","w");
echo fwrite($file,"Hello World. Testing!");
fclose($file);
// 文件读取
$txt=file("test.txt"); //读取的文件的时候,读出来的内容是一个数组
var_dump($txt);
foreach($txt as $value){
echo $value."<br>";