Array
(
[0] => Array
(
[0] => Array
(
[0] => Array
(
[label] => pam1
[y] => 1
)
)
[1] => Array
(
[0] => Array
(
[label] => pam2
[y] => 3
)
)
[2] => Array
(
[0] => Array
(
[label] => pam3
[y] => 2
)
)
[3] => Array
(
[0] => Array
(
[label] => pam4
[y] => 3
)
)
[4] => Array
(
[0] => Array
(
[label] => pam5
[y] => 4
)
)
[5] => Array
(
[0] => Array
(
[label] => pam6
[y] => 4
)
)
[6] => Array
(
[0] => Array
(
[label] => pam7
[y] => 4
)
)
[7] => Array
(
[0] => Array
(
[label] => pam8
[y] => 6
)
)
[8] => Array
(
[0] => Array
(
[label] => pam9
[y] => 1
)
)
)
[1] => Array
(
[0] => Array
(
[0] => Array
(
[label] => pam1
[y] => 2
)
)
[1] => Array
(
[0] => Array
(
[label] => pam2
[y] => 2
)
)
[2] => Array
(
[0] => Array
(
[label] => pam3
[y] => 4
)
)
[3] => Array
(
[0] => Array
(
[label] => pam4
[y] => 2
)
)
[4] => Array
(
[0] => Array
(
[label] => pam5
[y] => 4
)
)
[5] => Array
(
[0] => Array
(
[label] => pam6
[y] => 4
)
)
[6] => Array
(
[0] => Array
(
[label] => pam7
[y] => 5
)
)
[7] => Array
(
[0] => Array
(
[label] => pam8
[y] => 2
)
)
[8] => Array
(
[0] => Array
(
[label] => pam9
[y] => 5
)
)
)
[2] => Array
(
[0] => Array
(
[0] => Array
(
[label] => pam1
[y] => 3
)
)
[1] => Array
(
[0] => Array
(
[label] => pam2
[y] => 2
)
)
[2] => Array
(
[0] => Array
(
[label] => pam3
[y] => 3
)
)
[3] => Array
(
[0] => Array
(
[label] => pam4
[y] => 5
)
)
[4] => Array
(
[0] => Array
(
[label] => pam5
[y] => 1
)
)
[5] => Array
(
[0] => Array
(
[label] => pam6
[y] => 4
)
)
[6] => Array
(
[0] => Array
(
[label] => pam7
[y] => 4
)
)
[7] => Array
(
[0] => Array
(
[label] => pam8
[y] => 7
)
)
[8] => Array
(
[0] => Array
(
[label] => pam9
[y] => 3
)
)
)
)
for($i = 0; $i <= $chess-1; $i++) {
${'result'.$i}=array_merge($ramb[$i][0],$ramb[$i][1],$ramb[$i][2],$ramb[$i][3],$ramb[$i][4],$ramb[$i][5],$ramb[$i][6],$ramb[$i][7],$ramb[$i][8]);
}
Array
(
[0] => Array
(
[label] => pam1
[y] => 1
)
[1] => Array
(
[label] => pam2
[y] => 3
)
[2] => Array
(
[label] => pam3
[y] => 2
)
[3] => Array
(
[label] => pam4
[y] => 3
)
[4] => Array
(
[label] => pam5
[y] => 4
)
[5] => Array
(
[label] => pam6
[y] => 4
)
[6] => Array
(
[label] => pam7
[y] => 4
)
[7] => Array
(
[label] => pam8
[y] => 6
)
[8] => Array
(
[label] => pam9
[y] => 1
)
)
array_merge($ramb[$i][0],$ramb[$i][1],$ramb[$i][2],$ramb[$i][3],$ramb[$i][4],$ramb[$i][5],$ramb[$i][6],$ramb[$i][7],$ramb[$i][8]);