回答編集履歴
1
ついき
test
CHANGED
@@ -15,3 +15,25 @@
|
|
15
15
|
}
|
16
16
|
|
17
17
|
```
|
18
|
+
|
19
|
+
# 追記
|
20
|
+
|
21
|
+
関数で処理
|
22
|
+
|
23
|
+
```PHP
|
24
|
+
|
25
|
+
function func($arg){
|
26
|
+
|
27
|
+
foreach($arg as $key=>$value){
|
28
|
+
|
29
|
+
print $key.":".$value."<br>\n";
|
30
|
+
|
31
|
+
}
|
32
|
+
|
33
|
+
}
|
34
|
+
|
35
|
+
$a=["x"=>123,"y"=>456,"z"=>789];
|
36
|
+
|
37
|
+
func($a);
|
38
|
+
|
39
|
+
```
|