質問編集履歴

1

キー名の変更

2022/08/17 04:57

投稿

gomiobake666
gomiobake666

スコア6

test CHANGED
File without changes
test CHANGED
@@ -3,13 +3,13 @@
3
3
 
4
4
  $sampleArr[] = array(
5
5
  'ID' => 1,
6
- 'm_name' => 'test',
6
+ 'name' => 'test',
7
7
  'type' => 1
8
8
  );
9
9
 
10
10
  $sampleArr[] = array(
11
11
  'ID' => 2,
12
- 'm_name' => 'test2',
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
- 'm_name' => 'test',
20
+ 'name' => 'test',
21
21
  'age' => 1
22
22
  );
23
23
  } else {
24
24
  $dispArr[] = array(
25
25
  'ID' => 1,
26
- 'm_name' => 'test',
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
- 'm_name' => 'test',
41
+ 'name' => 'test',
42
42
  if ($sample['type'] == 1) {
43
43
  'age' => 1
44
44
  } else {