Sort associate array : Array sort : Data Structure PHP Source Code


PHP Source Code » Data Structure » Array sort »

 

Sort associate array



<?php
   $states = array("OH" => "Ohio""CA" => "California""MD" => "Maryland");
   sort($states);
   print_r($states);
?>

           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo Data Structure
» Array sort