휴대폰인증 후 폰넘버 포맷 변경 후 저장
This commit is contained in:
@ -153,6 +153,15 @@ else if( $cert_enc_use != "Y" )
|
|||||||
}
|
}
|
||||||
|
|
||||||
$ct_cert->mf_clear();
|
$ct_cert->mf_clear();
|
||||||
|
|
||||||
|
// 휴대폰번호 포맷변경
|
||||||
|
$phone_no = preg_replace("/[^0-9]/", "", $phone_no);
|
||||||
|
$hp_len = strlen($phone_no);
|
||||||
|
|
||||||
|
if($hp_len == 10)
|
||||||
|
$phone_no = preg_replace("/([0-9]{3})([0-9]{3})([0-9]{4})/", "\\1-\\2-\\3", $phone_no);
|
||||||
|
else if($hp_len == 11)
|
||||||
|
$phone_no = preg_replace("/([0-9]{3})([0-9]{4})([0-9]{4})/", "\\1-\\2-\\3", $phone_no);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
Reference in New Issue
Block a user