回答編集履歴

1

誤字修正

2016/11/29 09:15

投稿

tacsheaven
tacsheaven

スコア13703

test CHANGED
@@ -8,11 +8,13 @@
8
8
 
9
9
  $name = preg_replace("/( | )/", "", $x->name);
10
10
 
11
- if (array_key_exists($toban, $result)) {
11
+ if (!array_key_exists($toban, $result)) {
12
12
 
13
13
  // toban の要素が存在しないので新たに設定する
14
14
 
15
+ $result[$toban] = array('toban'=>'', 'name'=>'',
16
+
15
- $result[$toban] = array('toban'=>'', 'name'=>'', 'SG'=>0,'G1'=>0,'G2'=>0,'G3'=>0,'GN'=>0);
17
+ 'SG'=>0, 'G1'=>0, 'G2'=>0, 'G3'=>0, 'GN'=>0);
16
18
 
17
19
  }
18
20