怎么讲二维数组写入txt文件
$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);}