回答編集履歴
1
chousei
test
CHANGED
@@ -1 +1,15 @@
|
|
1
|
+
```PHP
|
2
|
+
|
3
|
+
header('Content-Type: text/csv ');
|
4
|
+
|
5
|
+
$fp=fopen("PHP://output","w");
|
6
|
+
|
7
|
+
while($row=$stmt->fetch(PDO::FETCH_ASSOC)){
|
8
|
+
|
1
|
-
f
|
9
|
+
fputcsv($fp,$row);
|
10
|
+
|
11
|
+
}
|
12
|
+
|
13
|
+
fclose($fp);
|
14
|
+
|
15
|
+
```
|