Código:
Gracias <?php
$jornada9 = 'http://juveniles.esy.es/Temp_Actual/jornadas_array/a.php';
$ch = curl_init($jornada9);
curl_setopt($ch, CURLOPT_TIMEOUT, 5);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$data= curl_exec($ch);
curl_close($ch);
$jornadas = json_decode($data);
setlocale(LC_ALL,"es_ES");
$date0 = DateTime::createFromFormat("d/m/Y", $jornadas[0]->fecha.'/2016');
$date1 = DateTime::createFromFormat("d/m/Y", $jornadas[1]->fecha.'/2016');
$date2 = DateTime::createFromFormat("d/m/Y", $jornadas[2]->fecha.'/2016');
$date3 = DateTime::createFromFormat("d/m/Y", $jornadas[3]->fecha.'/2016');
$date100 = str_replace(array($jornadas[0]->fecha),strftime("%d/%m/%Y",$date0->getTimestamp()),$data);
$date101 = str_replace(array($jornadas[1]->fecha),strftime("%d/%m/%Y",$date1->getTimestamp()),$date100);
$date102 = str_replace(array($jornadas[2]->fecha),strftime("%d/%m/%Y",$date2->getTimestamp()),$date101);
$date103 = str_replace(array($jornadas[3]->fecha),strftime("%d/%m/%Y",$date3->getTimestamp()),$date102);
$jornadas2 = json_decode($date103);
$fecha[0]->fecha . hora . abreviaturaEstado . estadoPartido . idLocal . idClubLocal . nomLocal . resulLocal . escudoLocal . idVisitante . idClubVisitante . nomVisitante . resulVisitante . escudoVisitante . codInfo . hayActa;
$fecha[1]->fecha . hora . abreviaturaEstado . estadoPartido . idLocal . idClubLocal . nomLocal . resulLocal . escudoLocal . idVisitante . idClubVisitante . nomVisitante . resulVisitante . escudoVisitante . codInfo . hayActa;
$fecha[2]->fecha . hora . abreviaturaEstado . estadoPartido . idLocal . idClubLocal . nomLocal . resulLocal . escudoLocal . idVisitante . idClubVisitante . nomVisitante . resulVisitante . escudoVisitante . codInfo . hayActa;
$fecha[3]->fecha . hora . abreviaturaEstado . estadoPartido . idLocal . idClubLocal . nomLocal . resulLocal . escudoLocal . idVisitante . idClubVisitante . nomVisitante . resulVisitante . escudoVisitante . codInfo . hayActa;
rsort ($jornadas2);
echo json_encode ($jornadas2);
?>


