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

Class: Validate_DE

Source Location: /Validate_DE-0.5.0/Validate/DE.php

Class Overview


Data validation class for Germany


Author(s):

Version:

  • Release: @package_version@

Copyright:

  • 2005 The PHP Group

Methods


Inherited Variables

Inherited Methods


Class Details

[line 39]
Data validation class for Germany

This class provides methods to validate:

  • Postal code
  • German bank code



[ Top ]


Method Detail

bankcode   [line 64]

bool bankcode( string $postcode)

Validate a German bankcode

German bankcodes consist of exactly 8 numbers

  • Return: true if bankcode is ok, false otherwise

Parameters:

string   $postcode   —  German bankcode to validate

[ Top ]

postalCode   [line 48]

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

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

Parameters:

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

[ Top ]


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