質問編集履歴
1
キー名の変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -3,13 +3,13 @@
|
|
3
3
|
|
4
4
|
$sampleArr[] = array(
|
5
5
|
'ID' => 1,
|
6
|
-
'
|
6
|
+
'name' => 'test',
|
7
7
|
'type' => 1
|
8
8
|
);
|
9
9
|
|
10
10
|
$sampleArr[] = array(
|
11
11
|
'ID' => 2,
|
12
|
-
'
|
12
|
+
'name' => 'test2',
|
13
13
|
'type' => 2
|
14
14
|
);
|
15
15
|
|
@@ -17,13 +17,13 @@
|
|
17
17
|
if ($sample['type'] == 1) {
|
18
18
|
$dispArr[] = array(
|
19
19
|
'ID' => 1,
|
20
|
-
'
|
20
|
+
'name' => 'test',
|
21
21
|
'age' => 1
|
22
22
|
);
|
23
23
|
} else {
|
24
24
|
$dispArr[] = array(
|
25
25
|
'ID' => 1,
|
26
|
-
'
|
26
|
+
'name' => 'test',
|
27
27
|
'type' => 1
|
28
28
|
);
|
29
29
|
}
|
@@ -38,7 +38,7 @@
|
|
38
38
|
|
39
39
|
$dispArr[] = array(
|
40
40
|
'ID' => 1,
|
41
|
-
'
|
41
|
+
'name' => 'test',
|
42
42
|
if ($sample['type'] == 1) {
|
43
43
|
'age' => 1
|
44
44
|
} else {
|