$v) { $b[$k] = strtolower($v[$subkey]); } asort($b); foreach($b as $key=>$val) { $c[] = $a[$key]; } return $c; } $url = 'http://www.fig-docs.com/swisstiming/AC/DT_RESULT-ACM242101.xml'; $rss_file = file_get_contents($url); // Si les XML ne sont pas sur le serveur if($rss_file==""){ echo"Results will be displayed here on April 03 at 17:12 local time!

"; } $xml = new SimpleXMLElement($rss_file) or die ("Results will be published in a minute"); ?>
Competition[0]->ExtendedInfos[0]->SportDescription[0]['DisciplineName']; $apparatus = $xml->Competition[0]->ExtendedInfos[0]->SportDescription[0]['SubEventName']; ?>
  - LIVE RESULTS
Competition[0]->Result[$i]['Rank']; $so = (string)$xml->Competition[0]->Result[$i]['SortOrder']; $point = (string)$xml->Competition[0]->Result[$i]['Result']; if($point == ""){ $lastname = ""; $NOC = ""; $id = ""; $baldif = ""; $balart = ""; $balexe = ""; $ballpen = ""; $baltpen = ""; $dyndif = ""; $dynart = ""; $dynexe = ""; $dynlpen = ""; $dyntpen = ""; }else{ $id_profile1 = (string)$xml->Competition[0]->Result[$i]->Competitor[0]->Composition[0]->Athlete[0]['Code']; $lastname1 = (string)$xml->Competition[0]->Result[$i]->Competitor[0]->Composition[0]->Athlete[0]->Description[0]['FamilyName']; $firstname1 = (string)$xml->Competition[0]->Result[$i]->Competitor[0]->Composition[0]->Athlete[0]->Description[0]['GivenName']; $id_profile2 = (string)$xml->Competition[0]->Result[$i]->Competitor[0]->Composition[0]->Athlete[1]['Code']; $lastname2 = (string)$xml->Competition[0]->Result[$i]->Competitor[0]->Composition[0]->Athlete[1]->Description[0]['FamilyName']; $firstname2 = (string)$xml->Competition[0]->Result[$i]->Competitor[0]->Composition[0]->Athlete[1]->Description[0]['GivenName']; $id_profile3 = (string)$xml->Competition[0]->Result[$i]->Competitor[0]->Composition[0]->Athlete[2]['Code']; $lastname3 = (string)$xml->Competition[0]->Result[$i]->Competitor[0]->Composition[0]->Athlete[2]->Description[0]['FamilyName']; $firstname3 = (string)$xml->Competition[0]->Result[$i]->Competitor[0]->Composition[0]->Athlete[2]->Description[0]['GivenName']; $id_profile4 = (string)$xml->Competition[0]->Result[$i]->Competitor[0]->Composition[0]->Athlete[3]['Code']; $lastname4 = (string)$xml->Competition[0]->Result[$i]->Competitor[0]->Composition[0]->Athlete[3]->Description[0]['FamilyName']; $firstname4 = (string)$xml->Competition[0]->Result[$i]->Competitor[0]->Composition[0]->Athlete[3]->Description[0]['GivenName']; $NOC = (string)$xml->Competition[0]->Result[$i]->Competitor[0]['Organisation']; $comart = (string)$xml->Competition[0]->Result[$i]->Competitor[0]->ExtendedResults[0]->ExtendedResult[0]['Value']; $comdif = (string)$xml->Competition[0]->Result[$i]->Competitor[0]->ExtendedResults[0]->ExtendedResult[2]['Value']; $comexe = (string)$xml->Competition[0]->Result[$i]->Competitor[0]->ExtendedResults[0]->ExtendedResult[1]['Value']; $comtpentest = (string)$xml->Competition[0]->Result[$i]->Competitor[0]->ExtendedResults[0]->ExtendedResult[4]['Code']; if($comtpentest == "PENALTY_TIME"){ $comtpen = (string)$xml->Competition[0]->Result[$i]->Competitor[0]->ExtendedResults[0]->ExtendedResult[4]['Value']; }else{ $comtpen = " "; } $comlpentest = (string)$xml->Competition[0]->Result[$i]->Competitor[0]->ExtendedResults[0]->ExtendedResult[4]['Code']; $comlpentest2 = (string)$xml->Competition[0]->Result[$i]->Competitor[0]->ExtendedResults[0]->ExtendedResult[5]['Code']; if($comlpentest == "PENALTY_OTHER"){ $comlpen = (string)$xml->Competition[0]->Result[$i]->Competitor[0]->ExtendedResults[0]->ExtendedResult[4]['Value']; }else if($comlpentest2 == "PENALTY_OTHER"){ $comlpen = (string)$xml->Competition[0]->Result[$i]->Competitor[0]->ExtendedResults[0]->ExtendedResult[5]['Value']; }else{ $comlpen = " "; } $tab_gym[$i]['place']=$place; $tab_gym[$i]['so']=$so; $tab_gym[$i]['note']=$point; $tab_gym[$i]['nom1']=$lastname1; $tab_gym[$i]['nom2']=$lastname2; $tab_gym[$i]['nom3']=$lastname3; $tab_gym[$i]['nom4']=$lastname4; $tab_gym[$i]['prenom1']=$firstname1; $tab_gym[$i]['prenom2']=$firstname2; $tab_gym[$i]['prenom3']=$firstname3; $tab_gym[$i]['prenom4']=$firstname4; $tab_gym[$i]['id_profile1'] = $id_profile1; $tab_gym[$i]['id_profile2'] = $id_profile2; $tab_gym[$i]['id_profile3'] = $id_profile3; $tab_gym[$i]['id_profile4'] = $id_profile4; $tab_gym[$i]['pays']=$NOC; $tab_gym[$i]['cscore']=$cscore; $tab_gym[$i]['comdif']=$comdif; $tab_gym[$i]['comart']=$comart; $tab_gym[$i]['comexe']=$comexe; if($comlpen != "ACCEPTED" && $comlpen != "REJECTED"){ $tab_gym[$i]['comlpen']=$comlpen; } if($comtpen != "ACCEPTED" && $comtpen != "REJECTED"){ $tab_gym[$i]['comtpen']=$comtpen; } } } if($tab_gym != ""){ $tab_gym = subval_sort($tab_gym,'so'); } $i=0; while ($tab_gym[$i]['note'] != ""){ ?>
Rk Name NF Total Difficulty Artistic Execution L.Penalty T.Penalty



Bal. = Balance | Dyn. = Dynamic | Comb. = Combined
Diff. = Difficulty | Art. = Artistic | Exe. = Execution | L.Pen = Line Penalty + Other Penalty | T.Pen = Time Penalty