Possible Duplicate:
Sorting a multidimensional array in PHP?
   $songs =  array(
    '1' => array('artist'=>'The Smashing Pumpkins', 'songname'=>'Soma'),
    '2' => array('artist'=>'The Decemberists', 'songname'=>'The Island'),
    '3' => array('artist'=>'Fleetwood Mac', 'songname' =>'Second-hand News')
);
Answer should come like this:
   Array(
[0] => Array
    (
        [artist] => Fleetwood Mac
        [song] => Second-hand News
    )
[1] => Array
    (
        [artist] => The Decemberists
        [song] => The Island
    )
[2] => Array
    (
        [artist] => The Smashing Pumpkins
        [song] => Cherub Rock
    )
)
Please help me on this.
 
     
    