bool phoneNumber(
string
$number)
|
|
Validates Icelandic telephone numbers (simanumer)
Checks that the telephone number is 7digits and legal home/office/gsm number (not information/emergency service etc.)
NOTE: Number prefixed with 00354 or +354 are allowed
Note: Icelandic telephone numbers are on the form xxx-xxxx. Here we strip the "-" char from the string (if present) and/or spaces in our match.
Parameters:
bool postalCode(
int
$postCode, [bool
$strong = false], [string
$dataDir = null], [string
$url = 'http://www.postur.is/gogn/Gotuskra/postnumer.txt'])
|
|
Validates Icelandic postal codes (postnumer)
Validates Icelandic postalcodes. By default checks against (prefetched) list containing all Icelandic postalcodes. Live check (against, by default, the official list) is available by switching $strong (2nd parameter) to true. $dataFile will be rewritten with the data retrived from $url in $strong mode
User can provide his own datafile if he wishes and/or own "official" list.
Parameters:
Validate Icelandic SSN (kennitolu)
Validation according to http://www.hagstofa.is/?PageID=1474
Note: Icelandic SSN (Social Security Number) is on the form ddmmyy-xxxx. Here we strip the "-" char from the string (if present) and/or spaces in our match. Note: PASS IN STRING, NO EXCEPTIONS! SSN with leading zero (passed as integer) will NOT get validated!
Parameters: