PHP函数Ksort()通过关键字对数组进行排序的具体方式介绍_PHP教程
程序员文章站
2022-03-31 20:08:41
...
我们在学习Listing C的具体代码如下:
- php
- $data = array("US" => "United States",
"IN" => "India", "DE" => "Germany", "ES" =>
"Spain");ksort($data); print_r($data);- ?>