category | OSS |
---|---|
package | OSS_Log |
copyright | Copyright (c) 2007 - 2012, Open Source Solutions Limited, Dublin, Ireland |
license | New BSD License |
formatPhoneNumber(string $pNumber, bool $pInternational, string | int $pCountryCode, string | int $pLocalPrefix) : string
country code to the beginning, and removing the leading local prefix if present - for example '353' and '0' for Ireland.
string
bool
default false
string
int
default '353'
string
int
default '0'
string
intlPhoneNumber(string $pNumber, string | int $pCountryCode, string | int $pLocalPrefix) : string
country code to the beginning, and removing the leading local prefix if present - for example '353' and '0' for Ireland.
string
string
int
default '353'
string
int
default '0'
string
isMobileNumber(string $pNumber, string $pCountryCode) : boolean
string
string
default '353'
boolean
localPhoneNumber(string $pNumber, string | int $pCountryCode, string | int $pLocalPrefix) : string
country code from the beginning, and adding the leading local prefix if missing - for example '353' and '0' for Ireland.
string
string
int
default '353'
string
int
default '0'
string