ksort produces wrong result when dealing with alphanumeric characters

后端 未结 6 789
感动是毒
感动是毒 2021-01-18 18:40
\'7833\',
        \'d\'=>\'1297\',
        \'c\'=>\'341\',
        \'1\'=>\'67\',
        \'b\'=>\'225\',
            


        
6条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-18 19:16

    Try ksort($a, SORT_STRING) to force string comparisons on the keys.

提交回复
热议问题