here's my code, which displays the results I'm after, but is it possible to list them by order or
$xml = simplexml_load_file('racing.xml');
foreach ($xml->sport[0]->event_path->event_path as $gameinfo):
$description = $gameinfo->description;
$getdate = $gameinfo->event['date'];
$event_id = $gameinfo->event['id'];
$date = substr($getdate,0,10);
The code
<?=substr($description, -5)?>
leaves me with the variable as times, ie: 14:40, 15:50: 14:20: 18:40 etc etc, but they are shown in the order of the XML rather than by time.
Is there a line of code I can include to sort the results by the date variable?