php 二维数组排序

usort($info ,function($a,$b){
            $a1 = $a['score'];
            $b1 = $b['score'];
            if($a1 == $b1) return 0;

            return ($a1 > $b1) ?-1 : 1;
        });

 

posted @ 2015-12-24 17:16  Grass_to  阅读(129)  评论(0编辑  收藏  举报