我想在php中按键对数组进行排序.但我使用的字母不是普通的英文字母,而是自创字母.这可能吗?
我的字母是
$alphabet = "AjawbpfmnrhHxXsSqkgtTdD =";
数组是这样的:
Array (
[=k_0] => Array(
[0] => DI.3,2 &dwA-nTr& @Hrw@
[1] => mA
[2] => =k
[3] => Sfj,t
[4] => =k
[5] => pXr
)
[aA_2] => Array(
[0] => DI.7,4 &dwA-nTr& @Hrw-smA-tA,wj@
[1] => snD
[2] => aA
[3] => Sfj,t
[4] => jt
[5] => jt,w
)
[sqA_1] => Array(
[0] => DI.6,18 &dwA-nTr& @nswt@
[1] => ra
[2] => sqA
[3] => Sfj,t
[4] => =s
[5] => r
)
);
所以,如果我在字母表后面对这个数组进行排序,那么带有键[= k_0]的数组应该在最后.