日期:2014-05-17 浏览次数:20475 次
$total = array(array("address","age")); $total[$name] = ...
$arr = 你的数组; $fn = '带保存的文件名'; foreach($arr as $name=>$row) { file_put_contents($fn, "$name,$row[address],$row[age]" . PHP_EOL, FILE_APPEND); }