1<?PHP2 3 4 $characters=Array(' A ', ' B ', ' C ', ' d ', ' e ', ' F ');5 Arsort($characters);6 Print_r($characters);7 /*8 Array ([5] = f [4] = e [3] = + d [2] = c [1] = b [0] = a)9 */Ten One A - $numbers=Array(1,2,3,4,5,6,7,8); - Arsort($numbers); the Print_r($numbers); - /* - Array ([7] = 8 [6] = 7 [5] = 6 [4] = 5 [3] = 4 [2] = 3 [1] = 2 [0] = 1) - */ + - $fruits=Array(' Lemon ', ' orange ', ' banana ', ' apple '); + Arsort($fruits); A Print_r($fruits); at /* - Array ([1] = orange [0] = lemon [2] = = Banana [3] = + apple) - */ - - /*Arsort () function to sort the results of Chinese*/ - $chinese=Array(' Love ', ' Ben ', ' eat ', ' land ');//Ai-ben-chi-di in Var_dump(Arsort($chinese)); - Print_r($chinese); to /* + bool (TRUE) - Array ([0] = = Love [1] = [3] = [2] = = Eat) the */ * $ $pingyin=Array(' Ai ', ' Ben ', ' Chi ', ' di ');Panax Notoginseng Arsort($pingyin); - Print_r($pingyin); the /* + Array ([3] = di [2] = chi [1] = = ben [0] = = AI) A */ the?>
Conclusion: [cell index relationship is unchanged, reverse order]
1. The English characters are sorted alphabetically by 27 alphabetical order, and the cell index relation remains unchanged;
2. The numbers are sorted in reverse order, and the cell index relationship remains the same;
Question: How does the Arsort () function sort the Chinese text?