跳到主要內容
文件

類別・函式規格

Korea

Zittme\Framework\Korea 類別的公開方法清單。本文件由 Zittme 核心原始碼自動產生。

原始碼:common/framework/Korea.php

公開方法

  • static function formatPhoneNumber(string $num)
  • Format a phone number.
  • static function isValidPhoneNumber(string $num)
  • Check if a Korean phone number contains a valid area code and the correct number of digits.
  • static function isValidMobilePhoneNumber(string $num)
  • Check if a Korean phone number is a mobile phone number.
  • static function isValidJuminNumber(string $code)
  • Check if the given string is a valid resident registration number (주민등록번호)
  • static function isValidCorporationNumber(string $code)
  • Check if the given string is a valid corporation registration number (법인등록번호).
  • static function isValidBusinessNumber(string $code)
  • Check if the given string is a valid business registration number (사업자등록번호).
  • static function isKoreanIP(string $ip)
  • Check if the given IP address is Korean.
  • static function isKoreanEmailAddress(string $email_address, bool $clear_cache = false)
  • Check if the given email address is hosted by a Korean portal site.