回答編集履歴
1
chousei
test
CHANGED
@@ -9,3 +9,13 @@
|
|
9
9
|
print_r($b);
|
10
10
|
print implode(",",$b);
|
11
11
|
```
|
12
|
+
# 調整版
|
13
|
+
```PHP
|
14
|
+
$a="item0001,item0002";
|
15
|
+
print_r($a);
|
16
|
+
$b=array_map(function($x){
|
17
|
+
return "\"$x\"";
|
18
|
+
},explode(",",$a));
|
19
|
+
print_r($b);
|
20
|
+
print implode(",",$b);
|
21
|
+
```
|