I don't have a specified number of subarrays, but my data structure can look like this:
array(("john","alex","tyler"),("1","2","3"),("brown","yellow","green"));
The above example has 3 subarrays, but the problem is this number can change.
As a final output I need, in this example, an array with 3 strings.
array("john,1,brown","alex,2,yellow","tyler,3,green");
I've tried to write this with functions, but couldn't find a solution.