怎么讲二维数组写入txt文件
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> $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); } <div class="clear"> </div>