How do I reverse sort an array by key?
You guessed it... krsort - getting good at this PHP lark now!
Here's the obligatory quick example:
$myworld = array("a"=>"PHP","b"=>"learning","c"=>"I'm");
Which confirms your suspicions:
[c] => I'm
[b] => learning
[a] => PHP
More arrays PHP QuestionsHow do I find the size of an array?
Hi. i have a music samples website. in one table, id like a different sample to appear every time the page is refreshed. how do i acheve this? how can i alterate and retrieve these bloody mp3's? surely i can use a PHP script? thankyou
How do I remove an element from an array without changing the index values for the rest of the array?
How can I sort a multi-dimensional array?
in .$array->description doesn't work "description" is suppose to stay black and turns colored and is ignored Why?