i18n
Zittme\Framework\i18n 類別的公開方法清單。本文件由 Zittme 核心原始碼自動產生。
原始碼:common/framework/i18n.php
公開方法
static function listCountries(int $sort_by = self::SORT_NAME_ENGLISH)- Get the list of all countries.
static function getCallingCodeByCountryCode(string $code)- Get the calling code from a country code (either ISO-3166-1 alpha2 or alpha3).
static function getCountryCodeByCallingCode(string $code, $type = 3)- Get the country code (either ISO-3166-1 alpha2 or alpha3) from a calling code.
static function formatPhoneNumber(string $phone_number, string $phone_country, bool $pretty = true)- Format a phone number with country code.