SproutCMS

This is the code documentation for the SproutCMS project

function validatePostcode()

Validate a ZIP Code, as a 5-digit number with an optional appended hyphen with 4 additional digits
E.g. 20521 or 20521-9000

Usage

void LocaleInfoUSA::validatePostcode ( string $code );

Arguments

  1. string $code
    The postcode to validate

Exceptions thrown

Return value

  • void