如:
$test={"A":1,"B":3,"C":2,"D":1,"E":1};
得到:
$result={"B":3,"C":2,"A":1,"D":1,"E":1}; 试过rsort($test),不行。 很像sql语句中的orderby,能否有办法?
如:
$test={"A":1,"B":3,"C":2,"D":1,"E":1};
得到:
$result={"B":3,"C":2,"A":1,"D":1,"E":1}; 试过rsort($test),不行。 很像sql语句中的orderby,能否有办法?