php 二维数组排序

<?php
users = array( array( 'name' => 'tom', 'age' => 20 ), array( 'name' => 'anny', 'age' => 18 ), array( 'name' => 'jack', 'age' => 22 ) ); array_multisort($users, SORT_ASC, array_column($users, 'age')); var_dump($users);

 

posted @ 2019-08-15 17:17  炜华  阅读(115)  评论(0编辑  收藏  举报