scvinodkumar Posted June 2, 2009 Share Posted June 2, 2009 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 More sharing options...
Mark Baker Posted June 2, 2009 Share Posted June 2, 2009 Take a look at the array_multisort() function Link to comment https://forums.phpfreaks.com/topic/160625-sorting-array/#findComment-847674 Share on other sites More sharing options...
Alt_F4 Posted June 2, 2009 Share Posted June 2, 2009 http://stackoverflow.com/questions/777597/sorting-an-associative-array-in-php Always ask google, he's a pretty smart guy Link to comment https://forums.phpfreaks.com/topic/160625-sorting-array/#findComment-847676 Share on other sites More sharing options...
scvinodkumar Posted June 2, 2009 Author Share Posted June 2, 2009 thanks for your help Link to comment https://forums.phpfreaks.com/topic/160625-sorting-array/#findComment-847706 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.