I'm trying to do something: I've got an Array that's layed out as such:
Array ( [0] => Nocciole con guscio 1000gr;;1;€5,50;0;0;No;0;
[1] => Abbonamento Box Piccola - 4 Box;1;1;€60,00;0;0;Sì;4;
[2] => Box Media - Mista;2;1;€27,00;0;0;No;0;
[3] => La Tua Box - Piccola;1;1;€25,00;Mele, Pere;Finocchi, Radicchio Tondo, Cetrioli, Peperoni Rossi;No;0;
[4] => Abbonamento Box Piccola - 4 Box;1;1;€60,00;0;0;Sì;4;
[5] => Abbonamento Box Grande - 8 Box;3;1;€200,00;0;0;Sì;8;
[6] => Box Piccola - Mista;1;1;€20,00;0;0;No;0;
[7] => Abbonamento Box Media - 4 Box;2;1;€80,00;0;0;Sì;4; )
As you can see, all the values are formatted so that i can easily explode them into single arrays. Each one would look like this:
Subarray ( [0] => Abbonamento Box Piccola - 4 Box
[1] => 1
[2] => 1
[3] => €60,00
[4] => 0
[5] => 0
[6] => Sì
[7] => 4
[8] => )
What I need to do is sort the first array by Subarray[1] in descending order (note that index 1 contains a string) so that the Subarray keeps it's index=>value structure as originally was. Any clue?