United States of America States and Cities List in Array PHP

We’ve created USA (United States of America) states and cities list in array for your programming purpose.

  • The scripts are written in PHP.
  • There are 46 states and 275 cities.
  • You’ll get both newline and without newline arrays.
  • The File is in zip format
  • Total file size is 28.3Kb

This is the sample of USA states and cities in array with newline.

$statecity = array('Alabama' => array('Birmingham',
  'Montgomery',
  'Mobile',
  'Huntsville'),
  'Alaska' => array('Anchorage'),
  'Arizona' => array('Mesa',
  'Phoenix',
  'Tucson',
  'Gilbert',
  'Scottsdale',
  'Chandler',
  'Tempe',
  'Surprise')

This is the sample of USA states and cities in array without newline.

$statecity = array('Alabama' => array('Birmingham', 'Montgomery', 'Mobile', 'Huntsville'), 'Alaska' => array('Anchorage'), 'Arizona' => array('Mesa', 'Phoenix', 'Tucson', 'Gilbert', 'Scottsdale', 'Chandler', 'Tempe', 'Surprise')

The price is $5. It’s relatively cheap to save your time! Including BONUS: United States of America states and cities in Microsoft Excel format (.xlsx and .xls).

Leave a Reply