Sort an associative array in ascending order, according to the value:


SUBMITTED BY: henry1874w

DATE: June 26, 2017, 5:06 p.m.

FORMAT: Text only

SIZE: 75 Bytes

HITS: 197

  1. <?php
  2. $age=array("Peter"=>"35","Ben"=>"37","Joe"=>"43");
  3. asort($age);
  4. ?>

comments powered by Disqus