SproutCMS

This is the code documentation for the SproutCMS project

function validatePostcode()

Validate a UK postcode

The supported formats are as follows:
AA9A 9AA
A9A 9AA
A9 9AA
A99 9AA
AA9 9AA
AA99 9AA

Usage

void LocaleInfoGBR::validatePostcode ( string $code );

Arguments

  1. string $code
    The postcode to validate

Exceptions thrown

Return value

  • void