Hello there I've been trying to sort the data I've been pulling from a generated XML file and could use some help with alphabetizing the title_series.
PHP Code:
<?php
$user= "domokun1134";
$urlss = 'http://myanimelist.net/malappinfo.php?u=' . $user . '&status=all&type=anime';
$xmlss = simplexml_load_file($urlss);
$jsossn = json_encode($xmlss);
$arrayss = json_decode($jsossn,TRUE);
usort($arrayss, function($a, $b){
return strcasecmp($a[1]["series_title"], $b[1]["series_title"]);
});
echo "<pre>";
print_r($arrayss);
echo "</pre>";
?>