php 将状态和缩写组织成数组。
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了php 将状态和缩写组织成数组。相关的知识,希望对你有一定的参考价值。
<?php
function get_states() {
$states = array(
"AK" => "Alaska",
"AL" => "Alabama",
"AR" => "Arkansas",
"AZ" => "Arizona",
"CA" => "California",
"CO" => "Colorado",
"CT" => "Connecticut",
"DE" => "Delaware",
"FL" => "Florida",
"GA" => "Georgia",
"HI" => "Hawaii",
"IA" => "Iowa",
"ID" => "Idaho",
"IL" => "Illinois",
"IN" => "Indiana",
"KS" => "Kansas",
"KY" => "Kentucky",
"LA" => "Louisiana",
"MA" => "Massachusetts",
"MD" => "Maryland",
"ME" => "Maine",
"MI" => "Michigan",
"MN" => "Minnesota",
"MO" => "Missouri",
"MS" => "Mississippi",
"MT" => "Montana",
"NC" => "North Carolina",
"ND" => "North Dakota",
"NE" => "Nebraska",
"NH" => "New Hampshire",
"NJ" => "New Jersey",
"NM" => "New Mexico",
"NV" => "Nevada",
"NY" => "New York",
"OH" => "Ohio",
"OK" => "Oklahoma",
"OR" => "Oregon",
"PA" => "Pennsylvania",
"RI" => "Rhode Island",
"SC" => "South Carolina",
"SD" => "South Dakota",
"TN" => "Tennessee",
"TX" => "Texas",
"UT" => "Utah",
"VA" => "Virginia",
"VT" => "Vermont",
"WA" => "Washington",
"WI" => "Wisconsin",
"WV" => "West Virginia",
"WY" => "Wyoming",
"CAN" => "Canada"
);
return $states;
}
?>
以上是关于php 将状态和缩写组织成数组。的主要内容,如果未能解决你的问题,请参考以下文章
SQL:将汇总数据组织成两列
如何正确地将输出组织成列?
Angular2 将大型应用程序组织成更小的应用程序
如何将这些相关索引组织成可以在 Rust 中有效查找的内容?
核心数据:如何根据姓名的第一个字母将联系人(实体)组织成部分?
深度学习框架-Tensorflow基础学习