본문 바로가기

프로그램 개발서

검색하기
프로그램 개발서
프로필사진 rairen

  • 분류 전체보기 (72)
    • jQuery (2)
    • Javascript (9)
    • PHP (23)
    • Web (32)
    • MSSQL(Microsoft SQL Server) (2)
    • Server (1)
    • Android (3)
    • IOS (0)
    • 개발지 (0)
    • 취미생활 (0)
      • StarCraft (0)
Guestbook
반응형
Notice
  • 카테고리 관련 안내
  • 블로그 개설했습니다.
Recent Posts
Recent Comments
Link
«   2026/01   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Tags
  • APK
  • javascript
  • MSsql
  • 웹 프로그래밍
  • 안드로이드
  • Database
  • API
  • html
  • 영카트
  • mysql
  • jquery
  • rairen
  • 옵션표
  • php
  • 그누보드
  • FCM
  • 헬퍼
  • codeigniter3
  • 코드이그나이터
  • CI3
  • ajax
  • 라이렌
  • 설정
  • 함수
  • config
  • jw player
  • 후크
  • CodeIgniter
  • phpDocumentor
  • function
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록Format (1)

프로그램 개발서

[PHP] 연락처 형식 함수 format_phone

if(function_exists('format_phone') === flase){ /** * @param string $phone 연락처 문자열 * @return string 반환 문자열 */ function format_phone($phone){ $phone = preg_replace("/[^0-9]/", "", $phone); $length = strlen($phone); switch($length){ case 11 : return preg_replace("/([0-9]{3})([0-9]{4})([0-9]{4})/", "$1-$2-$3", $phone); break; case 10: return preg_replace("/([0-9]{3})([0-9]{3})([0-9]{4})/", "$1-$2-$3..

Web 2019. 5. 2. 11:12
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바