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

Class: Validate_NO

Source Location: /Validate_NO-0.1.0/Validate/NO.php

Class Overview


Data validation class for Norway


Author(s):

Version:

  • Release: 0.1.0

Methods


Inherited Variables

Inherited Methods


Class Details

[line 37]
Data validation class for Norway

This class provides methods to validate:

  • Postal code



[ Top ]


Method Detail

postalCode   [line 50]

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

Validate a Norway postcode.
  • Return:

    true if postcode is ok, false otherwise

    http://en.wikipedia.org/wiki/Postal_codes_in_Norway

  • Access: public

Parameters:

string   $postcode   —  postcode to validate
bool   $strong   —  optional; strong checks (e.g. against a list of postcodes) (not implemented)

[ Top ]


Documentation generated on Wed, 09 Dec 2015 22:49:27 +0000 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.