公告
财富商城
积分规则
提问
发文
2020-03-12 03:44发布
成全新的幸福
Is there an option in PHP to sort an array by key value descending?
I am aware that you can sort key values with ksort
http://www.php.net/manual/en/function.krsort.php krsort?
I believe krsort() is what you're looking for.
Yes, the krsort
$fruits = array("d"=>"lemon", "a"=>"orange", "b"=>"banana", "c"=>"apple"); krsort($fruits);
最多设置5个标签!
http://www.php.net/manual/en/function.krsort.php krsort?
I believe krsort() is what you're looking for.
Yes, the krsort