How can I reverse sort an array keeping the correlation between the index and value?
$myworld = array("a"=>"everything","b"=>"nothing","c"=>"is");
Which prints this:
[b] => nothing
[c] => is
[a] => everything
More arrays PHP Questionsi need to store a multi-dimensioned array into a file. there is plenty of info. on creating md-arrays but i cant find anything on writing a md-array to a file.
How to point internal pointer to first element of an array?
How do I sort the members of an array by value?
How can I sort an array keeping the correlation between the index and value?
How do I add to the end of an array and know how large the array is?