PHP

Sorting

<?php
   $capitalcities['England'] = 'London';
   $capitalcities['Wales'] = 'Cardiff';
   $capitalcities['Scotland'] = 'Edinburgh';
   ksort($capitalcities);
   var_dump($capitalcities);
   asort($capitalcities);
   var_dump($capitalcities);
?>

José M. Vidal .

19 of 33