Hello,
I have a new question about organizing multidimensional arrays.
I have an array containing several others; my aim is to obtain a new array, which groups together those arrays from the first array that share the same initial value ("00527-00527.tif" in this case).
Here's my code:
[HTML]//BEGIN CODE
startingGroup = new Array(); //starting array
startingGroup[0] = ["00527-00527.tif;00527;Product_1;33;25,13"];
startingGroup[1] = ["00527-00527.tif;00528;Product_2;33;25,13"];
startingGroup[2] = ["01211-01211.tif;00119;Product_3;26;25,06"];
//I want to obtain this
resultingGroup = new Array(); //resulting array
resultingGroup[0] = ["00527-00527.tif;00527;Product_1;33;25,13","00527-00527.tif;00528;Product_2;33;25,13"];
resultingGroup[1] = ["01211-01211.tif;00119;Product_3;26;25,06"];[/HTML]
I wonder if is it possible to do it so
Any help would be mouch appreciated
Thanks