nezzario

US States PHP Array

Sep 16th, 2013
673
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.39 KB | None | 0 0
  1. <?php
  2. // Country Codes Available At:
  3. // http://pastebin.com/VSAvVng6
  4.  
  5. // Just array_flip() this array, and possible var_export() the results
  6. // to get the data the other way around.
  7.  
  8. $states = array(
  9.   'AK' => 'Alaska',
  10.   'AL' => 'Alabama',
  11.   'AR' => 'Arkansas',
  12.   'AZ' => 'Arizona',
  13.   'CA' => 'California',
  14.   'CO' => 'Colorado',
  15.   'CT' => 'Connecticut',
  16.   'DC' => 'District of Columbia',
  17.   'DE' => 'Delaware',
  18.   'FL' => 'Florida',
  19.   'GA' => 'Georgia',
  20.   'HI' => 'Hawaii',
  21.   'IA' => 'Iowa',
  22.   'ID' => 'Idaho',
  23.   'IL' => 'Illinois',
  24.   'IN' => 'Indiana',
  25.   'KS' => 'Kansas',
  26.   'KY' => 'Kentucky',
  27.   'LA' => 'Louisiana',
  28.   'MA' => 'Massachusetts',
  29.   'MD' => 'Maryland',
  30.   'ME' => 'Maine',
  31.   'MI' => 'Michigan',
  32.   'MN' => 'Minnesota',
  33.   'MO' => 'Missouri',
  34.   'MS' => 'Mississippi',
  35.   'MT' => 'Montana',
  36.   'NC' => 'North Carolina',
  37.   'ND' => 'North Dakota',
  38.   'NE' => 'Nebraska',
  39.   'NH' => 'New Hampshire',
  40.   'NJ' => 'New Jersey',
  41.   'NM' => 'New Mexico',
  42.   'NV' => 'Nevada',
  43.   'NY' => 'New York',
  44.   'OH' => 'Ohio',
  45.   'OK' => 'Oklahoma',
  46.   'OR' => 'Oregon',
  47.   'PA' => 'Pennsylvania',
  48.   'RI' => 'Rhode Island',
  49.   'SC' => 'South Carolina',
  50.   'SD' => 'South Dakota',
  51.   'TN' => 'Tennessee',
  52.   'TX' => 'Texas',
  53.   'UT' => 'Utah',
  54.   'VA' => 'Virginia',
  55.   'VT' => 'Vermont',
  56.   'WA' => 'Washington',
  57.   'WI' => 'Wisconsin',
  58.   'WV' => 'West Virginia',
  59.   'WY' => 'Wyoming',
  60. );
Advertisement
Add Comment
Please, Sign In to add comment