2次元配列を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[住所],$row[年齢]" . PHP_EOL, FILE_APPEND); <div class="clear"></div>