Here is my problem at the moment. Let's say I have several arrays in an array like:
array[
array["3", 20160502, "0"],
array["5", 20160503, "1"],
array["1", 20160504, "0"],
array["8", 20160504, "2"],
array["30", 20160506, "2"],
array["23", 20160506, "1"],
array["34", 20160506, "0"],
]
The 0th element is the total counter, the 1st element is the date in quantity, the second element is the status (0 or 1 or 2). I would like to rebuild the array above and create a new array, as shown below:
array[
array[20160502, "3", "0", "0"],
array[20160503, "0", "5", "0"],
array[20160504, "1", "0", "8"],
array[20160506, "34", "23", "30"]
]
Somebody knows? Thank you so much in advance.