Bonjour,

j'ai un tableau qui se compose comme ceci :

$tab = array();
$tab[] = array('indice' => '1','lg' => $G_Ab);
$tab[] = array('indice' => '2','lg' => $G_Ac);
$tab[] = array('indice' => '3','lg' => $G_Ad);
$tab[] = array('indice' => '4','lg' => $G_Ae);

ensuite mon tableau est trié par une fonction usort()

je souhaite afficher les 2 premiers lg de mon tableau trié

Comment faire ?