Validating postal code

Companies changed their mail addressing at their own expense, only to find the new zoning would prove to be short-lived.As the largest Canadian cities were growing in the 1950s and 1960s, the volumes of mail passing through the country's postal system also grew, reaching billions by the 1950s, and tens of billions by the mid-1960s.For example, the postcode of the University of Roehampton in London is SW15 5PU, where SW stands for south-west London.The postcode of GCHQ is GL51 0EX, where GL signifies the postal town of Gloucester.And I thought strpos() was going to be my savior, but can't get it to work.Eventually I'll be adding other postal codes so this is my beginning foray into the situation. It is NOT possible to get data in batch or get list of valid postal codes for a given country at a regular interval.The following countries are supported: The service uses Geo Names as source for all countries except Norway.

Many vendors also sell validation tools, which allow customers to properly match addresses and postal codes.

Hard-copy directories can also be consulted in all post offices, and some libraries.

When writing out the postal address for a location within Canada, the postal code follows the abbreviation for the province or territory.

The initial system of named postal districts, developed in London and other large cities from 1857, evolved towards the present form: in 1917 London was split into broad numbered subdivisions, and this extended to the other cities in 1934.

The structure of a postcode is a one or two-letter postcode area code named for a local town or area of London, one or two digits signifying a district in that region, a space, and then an arbitrary code of one number and two letters.