写入文件

<?php
$fp = fopen('aa.txt','w+'); 
fwrite($fp,var_export($times,true)); 
fclose($fp);

上方代码是将一个数组写入文件,因为用file_put_contents无法写入

你可能感兴趣的:(写入文件)