// $data 代表需要排序的數(shù)組 可一維 可二維usort( $data, function( $a, $b ) {return $b['total'] - $a['total'];});