code0110 Posted June 26, 2017 Report 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
EAdrian Posted June 26, 2017 Report Posted June 26, 2017 $new_array = usort($array, function($x, $y) { return $x["value"] - $y["value"]; }); Quote