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