Jump to content

[SOLVED] array sort


crashmaster

Recommended Posts

I have an array

Array
(
    [35] => 4.7143
    [85] => 4.4286
    [17] => 4.6667
    [91] => 4.5
    [86] => 4.1667
    [83] => 4.3333
    [87] => 4.8
    [93] => 5
    [23] => 4.8
    [22] => 5
    [40] => 5
    [90] => 5
    [92] => 5
    [55] => 4.3333
    [52] => 5
    [53] => 5
    [56] => 5
    [39] => 5
    [94] => 5
    [89] => 5
)

 

 

How to sort it by values ?? Not by KEY, but by VALUES. Thanks

Link to comment
https://forums.phpfreaks.com/topic/84468-solved-array-sort/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.