这是一个创建于 2164 天前的主题,其中的信息可能已经有所发展或是发生改变。
<?php
$fruits = array("张三", "orange","banana","apple" ,'dog','dophin',"王强",'王八','土豆','番茄','小米','红薯','兔子','大象');
sort($fruits);
$fruitslength = count($fruits);
foreach ($fruits as $key => $val) {
echo "fruit [".$key."] = ".$val." \n ";
}
echo $fruitslength;
?>
为什么结果是:
fruit [0] = apple
fruit [1] = banana
fruit [2] = dog
fruit [3] = dophin
fruit [4] = orange
fruit [5] = 兔子
fruit [6] = 土豆
fruit [7] = 大象
fruit [8] = 小米
fruit [9] = 张三
fruit [10] = 王八
fruit [11] = 王强
fruit [12] = 番茄
fruit [13] = 红薯
14
请问:兔子 土豆 大象 小米张三这些汉字是按照什么规则排序的?
|
|
1
wangjie 2018-12-04 22:46:49 +08:00 via Android
unicode
|