寫一個函數
$array = array(
);
處理後返回如下
河北
北京
function typeArray($array){
$con = null;
foreach ($array as $k=>$v){
$na[$k] = is_numeric($v[
}
asort($na); //排序
foreach ($na as $k=>$v){
$s = substr_count($v
$con
}
return $con;
}
From:http://tw.wingwit.com/Article/program/PHP/201311/20867.html