The following example sorts an associative array in descending order, according to the value:
<?php $age = array("Peter"=>"35", "Ben"=>"37", "Joe"=>"43"); arsort($age); ?>
The following example sorts an associative array in descending order, according to the value:
<?php $age = array("Peter"=>"35", "Ben"=>"37", "Joe"=>"43"); arsort($age); ?>