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 remove the first element from an array?
how can you reset an array in PHP
How do I find if a value is already in an array or not?
I want to invert my array, can I do this?
What is the starting salary of Php developer in india?? after 1 year experience how much i could get??