$citys) { $str .= self::$regionTree[$provinceId]['name']; if (count($citys) !== count(self::$regionTree[$provinceId]['city'])) { $cityStr = ''; foreach ($citys as $cityId) $cityStr .= self::$regionTree[$provinceId]['city'][$cityId]['name']; $str .= ' (' . mb_substr($cityStr, 0, -1, 'utf-8') . ')'; } $str .= '、'; } return mb_substr($str, 0, -1, 'utf-8'); } }