How to group by comma of every value as per same key? I need to re-orientate the array so that rows become columns and the new rows need to be joined together with commas to form strings.
My input:
[
[201767.11, 514324.91, 73205.74],
[349399.51, 647217.10, 3500.00],
[285169.05, 522357.20, 10.00],
[126858.21, 185190.59, 0],
]
Desired result:
Array
(
[0] => "201767.11, 349399.51, 285169.05, 126858.21",
[1] => "514324.91, 647217.10, 522357.20, 185190.59",
[2] => "73205.74, 3500.00, 10.00,0"
)