Array of States and their Territory Code

A PHP array of US state abbreviations and their corresponding territory code, including the leading zero.
1. $StateCode = (

2.    "01" => "AL",
3.    "02" => "AK",
4.    "04" => "AZ",
 5.   "05" => "AR",
6.    "06" => "CA",
7.    "08" => "CO",
8.    "09" => "CT",
9.    "10" => "DE",
 10.   "11" => "DC",
11.    "12" => "FL",
12.    "13" => "GA",
13.    "15" => "HI",
14.    "16" => "ID",
 15.   "17" => "IL",
16.    "18" => "IN",
17.    "19" => "IA",
18.    "20" => "KS",
19.    "21" => "KY",
 20.   "22" => "LA",
21.    "23" => "ME",
22.    "24" => "MD",
23.    "25" => "MA",
24.    "26" => "MI",
 25.   "27" => "MN",
26.    "28" => "MS",
27.    "29" => "MO",
28.    "30" => "MT",
29.    "31" => "NE",
 30.   "32" => "NV",
31.    "33" => "NH",
32.    "34" => "NJ",
33.    "35" => "NM",
34.    "36" => "NY",
 35.   "37" => "NC",
36.    "38" => "ND",
37.    "39" => "OH",
38.    "40" => "OK",
39.    "41" => "OR",
 40.   "42" => "PA",
41.    "44" => "RI",
42.    "45" => "SC",
43.    "46" => "SD",
44.    "47" => "TN",
 45.   "48" => "TX",
46.    "49" => "UT",
47.    "50" => "VT",
48.    "51" => "VA",
49.    "53" => "WA",
 50.   "54" => "WV",
51.    "55" => "WI",
52.    "56" => "WY",
53.    "72" => "PR",
54.    "78" => "VI"
 55.);
Nathan Pakovskie is an esteemed senior developer and educator in the tech community, best known for his contributions to Geekpedia.com. With a passion for coding and a knack for simplifying complex tech concepts, Nathan has authored several popular tutorials on C# programming, ranging from basic operations to advanced coding techniques. His articles, often characterized by clarity and precision, serve as invaluable resources for both novice and experienced programmers. Beyond his technical expertise, Nathan is an advocate for continuous learning and enjoys exploring emerging technologies in AI and software development. When he’s not coding or writing, Nathan engages in mentoring upcoming developers, emphasizing the importance of both technical skills and creative problem-solving in the ever-evolving world of technology. Specialties: C# Programming, Technical Writing, Software Development, AI Technologies, Educational Outreach

Leave a Reply

Your email address will not be published. Required fields are marked *

Back To Top