What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » updated - Sorting array data (PHP)

updated - Sorting array data (PHP)
Author: Message:
WDZ
Former Admin
*****

Avatar

Posts: 7106
Reputation: 107
– / Male / Flag
Joined: Mar 2002
RE: updated - Sorting array data (PHP)
array_multisort() should work fine for that. :p Here's an example of how you could use it...

code:
$songs = array(); // Your data would be in here
$artists = array(); // Temporary array

foreach($songs as $key => $song) {
    // Copy the first artist name
    $artists[$key] = $song['artist'][0];
}

array_multisort($artists, $songs);
01-11-2008 12:03 AM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
updated - Sorting array data (PHP) - by lordy on 01-10-2008 at 09:48 AM
RE: updated - Sorting array data (PHP) - by markee on 01-10-2008 at 10:50 AM
RE: updated - Sorting array data (PHP) - by lordy on 01-10-2008 at 09:40 PM
RE: updated - Sorting array data (PHP) - by WDZ on 01-11-2008 at 12:03 AM
RE: updated - Sorting array data (PHP) - by Adeptus on 01-11-2008 at 04:23 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On