PHP 州和省阵

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了PHP 州和省阵相关的知识,希望对你有一定的参考价值。

$state_arr = array( "initial_value" => " - Select Province/State - ",
											"AB" => "Alberta",
											"BC" => "British Columbia",
											"MB" => "Manitoba",
											"NB" => "New Burnswick",
											"NL" => "Newfoundland and Labrador",
											"NS" => "Nova Scotia",
											"NT" => "Northwest Territories",
											"NU" => "Nunavut",
											"ON" => "Ontario",
											"PE" => "Prince Edward Island",
											"QC" => "Quebec",
											"SK" => "Saskatchewan",
											"YT" => "Yukon",
											"divider" => "---------------",
											"AL" => "Alabama",
											"AK" => "Alaska",
											"AZ" => "Arizona",
											"AR" => "Arkansas",
											"CA" => "California",
											"CO" => "Colorado",
											"CT" => "Connecticut",
											"DE" => "Delaware",
											"DC" => "District of Columbia",
											"FL" => "Florida",
											"GA" => "Georgia",
											"HI" => "Hawaii",
											"ID" => "Idaho",
											"IL" => "Illinois",
											"IN" => "Indiana",
											"IA" => "Iowa",
											"KS" => "Kansas",
											"KY" => "Kentucky",
											"LA" => "Louisiana",
											"ME" => "Maine",
											"MD" => "Maryland",
											"MA" => "Massachusetts",
											"MI" => "Michigan",
											"MN" => "Minnesota",
											"MS" => "Mississippi",
											"MO" => "Missouri",
											"MT" => "Montana",
											"NE" => "Nebraska",
											"NV" => "Nevada",
											"NH" => "New Hampshire",
											"NJ" => "New Jersey",
											"NM" => "New Mexico",
											"NY" => "New York",
											"NC" => "North Carolina",
											"ND" => "North Dakota",
											"OH" => "Ohio",
											"OK" => "Oklahoma",
											"OR" => "Oregon",
											"PA" => "Pennsylvania",
											"RI" => "Rhode Island",
											"SC" => "South Carolina",
											"SD" => "South Dakota",
											"TN" => "Tennessee",
											"TX" => "Texas",
											"UT" => "Utah",
											"VT" => "Vermont",
											"VA" => "Virginia",
											"WA" => "Washington",
											"WV" => "West Virginia",
											"WI" => "Wisconsin",
											"WY" => "Wyoming");

以上是关于PHP 州和省阵的主要内容,如果未能解决你的问题,请参考以下文章

HTML 州和省选择

州和省选择

获取 CLGeocoder 返回的确切州/省字符串

使用城市、州和 zip 的三变量重写规则

美国或德国等英国的 Magento 州/省选项下拉菜单

WooCommerce:结账时预先选择并限制在一个州和城市