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