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 Questionswhen we retrieve values from db and show in drop-down list then how can i get selected particular value from drop-down so that programe will go next page??
How do I sort alphanumeric array data correctly?
How do I count the number of times a value appears in an array?
How do I find the size of an array?
in .$array->description doesn't work "description" is suppose to stay black and turns colored and is ignored Why?