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

Class: Validate_AR

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

Class Overview


Data validation class for Argentina


Author(s):

Version:

  • Release: @package_version@

Copyright:

  • 1997-2005 Marcelo Santos Araujo

Methods


Inherited Variables

Inherited Methods


Class Details

[line 46]
Data validation class for Argentina

This class provides methods to validate:

  • Regions - provinces of Argentina



[ Top ]


Method Detail

postalCode   [line 58]

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

  • Return: true if CPA is ok, false otherwise

Parameters:

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

[ Top ]

region   [line 71]

bool region( string $region)

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

Parameters:

string   $region   —  2-letter state code

[ Top ]


Documentation generated on Thu, 10 Dec 2015 05:38:31 +0000 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.