bool postalCode(
string
$postcode, [bool
$strong = false])
|
|
validates a postcode
Validation according to the "UK Government Data Standards Catalogue" Using PostCode-format version 2.1, which can be obtained from: http://www.govtalk.gov.uk/gdsc/html/noframes/PostCode-2-1-Release.htm
Note: The official validation-pattern was altered to also support postcodes with none or even spaces at various places. We don't count spaces as being "essential" for the validation-process. It was also necessary to refactor the regex to make it usable for preg_match.
Parameters:
Validates a social security number whic in UK is National Insurance Number or ni for short
Validation according to the "UK Government Data Standards Catalogue" Using NationalInsuranceNumber-format version 2.1, which can be obtained from: www.govtalk.gov.uk/gdsc/html/noframes/NationalInsuranceNumber-2-1-Release.htm
Note: The official validation-pattern was altered to also support numbers with none or even spaces at various places. We don't count spaces as being "essential" for the validation-process.
Parameters: