Switch to full style
:read: Start PHP with us. Includes topics to help you in php
Post a reply

Sort associative array

Tue Oct 28, 2008 1:41 am

Code:

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




Post a reply
  Related Posts  to : Sort associative array
 Fetch a key from an associative array     -  
 foreach to loop through an associative array     -  
 Array sort     -  
 balloon sort algorithm C++ implementation code-sorting array     -  
 Bubble Sort Algorithm Java Implementation Code-Sorting Array     -  
 Sort strings java-Sorting Array of Strings     -  
 Array difference for associate array     -  
 String Sort     -  
 C++ Recursion Sort     -  
 Sort a list     -  

Topic Tags

PHP Arrays