Je souhaiterais trier un tableau en fonction d'un champ date. Voici le code en php pour la création du tableau :
$library = simplexml_load_file('rss_mix.php5');
foreach ($library->channel as $shelf) {
foreach ($shelf->item as $item) {
printf("<br />%s\n", $item->title);
printf("<br />%s\n", $item->pubDate);
}
}
Est-il possible d'afficher par exemple les 5 dernières news par date?Merci d'avance.
MAx