도로명 주소 출력변환 함수 추가

This commit is contained in:
chicpro
2014-01-03 15:54:13 +09:00
parent b2251d9ea8
commit 12380f1274
2 changed files with 18 additions and 1 deletions

View File

@ -2501,4 +2501,21 @@ function get_address2($addr2, $addr3)
return $addr2;
}
// 도로명주소 출력
// 주소출력
function print_address($addr1, $addr2)
{
$address = trim($addr1);
$addr2 = trim($addr2);
if($addr2) {
if(preg_match('/^\(/', $addr2))
$address .= ' '.$addr2;
else
$address .= ', '.$addr2;
}
return $address;
}
?>