I`ve already done it the easy way - foreach to create a 1d array out of the 2d, then bubble sort, than array_chunk to make it 2d again.
Now I`m trying to do it without changing it.
Here is what I have so far :
Code:
$array = [ [5, 8, 7, 6], [1, 15, 10, 9], [2, 13, 3, 4], [11, 16, 12, 14],
Leave a comment: