Jump to content

array sort forgot :)


cooldude832

Recommended Posts

I have an array

Array
(
    [0] => Array
        (
            [sql_id] => 48
            [word] => lesbians
            [word_count] => 27
        )

    [1] => Array
        (
            [sql_id] => 22
            [word] => flexible
            [word_count] => 50
        )

    [2] => Array
        (
            [sql_id] => 12
            [word] => naked
            [word_count] => 73
        )

    [3] => Array
        (
            [sql_id] => 28
            [word] => fight
            [word_count] => 14
        )

    [4] => Array
        (
            [sql_id] => 822
            [word] => horse
            [word_count] => 3
        )

    [5] => Array
        (
            [sql_id] => 21
            [word] => sex
            [word_count] => 311
        )

called  $data

and I want to sort it by the word_count forgot how

Link to comment
https://forums.phpfreaks.com/topic/98081-array-sort-forgot/
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.