Sorting array values
Posted: Thu Mar 06, 2008 4:44 am
Mod | Please use [ code=html ], [ code=php ], etc tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:
Posting Code in the Forums to learn how to do it too.
Hi,
I have the following array:
What I want to do is sort the values in the array by 'number'.
How do I do this?
Thanks
Mod | Please use [ code=html ], [ code=php ], etc tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:
Posting Code in the Forums to learn how to do it too.
Hi,
I have the following array:
Code: Select all
$itemArray[]=array('title' => $_SESSION['stageTitle'][$x], 'description' => $_SESSION['stageDescription'][$x], 'number' => $_SESSION['stageNumber'][$x]);How do I do this?
Thanks
Mod | Please use [ code=html ], [ code=php ], etc tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: