Bonjour,j'ai un array composé comme ceci :Array( [1] => Array ( [0] => string [1] => string [2] => string[...] )
[2] => Array ( [0] => 3 [1] => 36 [2] => 206[...]))
Et j'aimerais trier $monarray[1] en ordre croissant selon $monarray[2]
Comment faire ?
Ça serait pas un tableau associatif qu'il te faudrait plutôt que 2 tableaux ? (un tableau avec des strings en index)
$dtc = array( "truc" => 36, "machin" => 3, "bidule" => 206);
Une fois trié ça donnera"machin" => 3"truc" => 36"bidule" => 206
En faite l'array est obtenu avec preg_match_all, donc chaud... :/