[ class tree: Validate_AR ] [ index: Validate_AR ] [ all elements ]

Class: Validate_AR

Source Location: /Validate_AR-0.1.2/Validate/AR.php

Class Overview

Data validation class for Argentina



  • Release: @package_version@


  • 1997-2005 Marcelo Santos Araujo


Inherited Variables

Inherited Methods

Class Details

[line 42]
Data validation class for Argentina

This class provides methods to validate:

  • Postal code CPA (Código Postal Argentino)
  • Regions - provinces of Argentina

[ Top ]

Method Detail

postalCode   [line 60]

bool postalCode( string $postalCode, [bool $strong = false], [bool $casesens = true])

Validate CPA (Código Postal Argentino, like postcode in US and other languages) format: one letter [B-T],four digits and three letters


string   $postalCode     AR CPA/postalCode to validate
bool   $strong     optional; checks (e.g. against a list of postcodes) (not implemented)
bool   $casesens     optional; (true - case sensitive, false - not case sensitive)

[ Top ]

region   [line 83]

bool region( string $region)

Validates a "region" (i.e. province) code
  • Return: true if $region is ok, false otherwise


string   $region     2-letter state code

[ Top ]

Documentation generated on Sun, 11 Dec 2011 13:30:05 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.