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

Class: Validate_NL

Source Location: /Validate_NL-0.5.0/Validate/NL.php

Class Overview


Data validation class for the Netherlands


Author(s):

Version:

  • Release: @package_version@

Copyright:

  • 2005 The PHP Group

Methods


Inherited Variables

Inherited Methods


Class Details

[line 45]
Data validation class for the Netherlands

This class provides methods to validate:

  • Social insurance number (aka SIN)
  • Bank account number
  • Telephone number
  • Postal code



[ Top ]


Method Detail

bankAccountNumber   [line 118]

bool bankAccountNumber( string $number)

Bankaccount validation check (based on 11proef)
  • Return: true is bankaccount number 'seems' correct

Parameters:

string   $number   —  Dutch bankaccount number

[ Top ]

phoneNumber   [line 69]

bool phoneNumber( string $number, [int $type = PHONENUMBER_TYPE_ANY])

Validate a phonenumber
  • Return: true if (phone) number is correct

Parameters:

string   $number   —  Dutch phonenumber (can be in international format (eg +31 or 0031)
int   $type   —  Type of phonenumber to check

[ Top ]

postalCode   [line 54]

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

Validate a NL postcode
  • Return: true if postcode is ok, false otherwise

Parameters:

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

[ Top ]

ssn   [line 107]

bool ssn( $ssn, string $number)

Social Security Number check (very simple, just a 9 digit number..) In Dutch SoFi (Sociaal Fiscaal) nummer
  • Return: true if SSN number is correct

Parameters:

string   $number   —  Dutch social security number
   $ssn   — 

[ Top ]


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