Jump to content

Sorting array


scvinodkumar

Recommended Posts

Hi,

 

I have an array like this,

 

Array
(
    [0] => Array
        (
            [username] => faruk
            [icon] => 89
            [name] => Patel, Faruk A
            [id] => 20
            [content] => Lets see if it can actually compete against Google. One good feature (mouseover preview) and speed does not mean it can compete yet.
            [cdate] => 1243884334
        )

    [1] => Array
        (
            [username] => scvinobaby
            [icon] => 87
            [name] => sowna vinodkumar
            [id] => 116
            [content] => I really loved bing.com but the only thing I didn’t like is that it is showing the webpages and videos embedded in its own website hence restricting the traffic to the real website..
            [cdate] => 1243936999
        )
)

 

Now, i want to sort the array using "cdate" desc order.

 

Please help me...

 

 

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