Menu
Hi, how do I use PHP to conver the colums of a matrix A to arrays A1, A2, A3…as followed? ?
Matrix A =
1 2 3 4
4 3 2 1
5 6 7 8
8 7 6 5
1 2 3 4
The resultant arrays are:
A1 = [0]=>1 [1]=>4 [2]=>5 [3]=>8 [4]=>1
A2 = [0]=>2 [1]=>3 [2]=>6 [3]=>7 [4]=>2
A3 = [0]=>3 [1]=>2 [2]=>7 [3]=>6 [4]=>3
A4 = [0]=>4 [1]=>1 [2]=>8 [3]=>5 [4]=>4
Thank you very much ?