code0110 Posted June 26, 2017 Report Share Posted June 26, 2017 Salutare, Am o functie php ce imi returneaza n array-uri de genul: Array ( [value] =>86 ) Array ( [value] => 3 ) Imi poate da cineva un sfat cum as putea sorta si afisa valorile?In exemlplu va fi afisat 3 86.Multam anticipat. Quote Link to comment Share on other sites More sharing options...
EAdrian Posted June 26, 2017 Report Share Posted June 26, 2017 $new_array = usort($array, function($x, $y) { return $x["value"] - $y["value"]; }); Quote Link to comment Share on other sites More sharing options...