Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
Sort an associative array in descending order, according to the value:
SUBMITTED BY:
henry1874w
DATE:
June 26, 2017, 5:05 p.m.
FORMAT:
Text only
SIZE:
76 Bytes
Raw
Download
Tweet
HITS:
242
Go to comments
Report
<?php
$age=array("Peter"=>"35","Ben"=>"37","Joe"=>"43");
arsort($age);
?>
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus