Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私の配列には、1 桁から始まり、数千まで増加する値があります。
$id で並べ替えたいのですが、結果は次のようになります。
0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15....等
0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15
いいえ
0,1,10,11,12,13,14,15,2,3,4,5,6,7,8,9....等
0,1,10,11,12,13,14,15,2,3,4,5,6,7,8,9
配列内の値を調整せずにそれは可能ですか?
ありがとう :)
それを試してください:
sort($myarr, SORT_STRING);