回答編集履歴
2
再々訂正
test
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
|
11
11
|
$groups[$row['group']] = 1; // dummmy
|
12
12
|
|
13
|
-
$groups[$row['group']] = count($groups)
|
13
|
+
$groups[$row['group']] = count($groups);
|
14
14
|
|
15
15
|
$result['key_' . $groups[$row['group']]][] = $row;
|
16
16
|
|
1
訂正
test
CHANGED
@@ -8,6 +8,8 @@
|
|
8
8
|
|
9
9
|
foreach ( $rows as $row ) {
|
10
10
|
|
11
|
+
$groups[$row['group']] = 1; // dummmy
|
12
|
+
|
11
13
|
$groups[$row['group']] = count($groups) + 1;
|
12
14
|
|
13
15
|
$result['key_' . $groups[$row['group']]][] = $row;
|