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 Mon, 11 Mar 2019 15:38:13 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.