PHP
[PHP] 정규식으로 전화번호 하이픈(-) 넣기
innocent_k
2015. 11. 13. 17:48
preg_replace("/(0(?:2|[0-9]{2}))([0-9]+)([0-9]{4}$)/", "\\1-\\2-\\3", $tel)