Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Validates IBAN Numbers (International Bank Account Numbers)

array
$_ibanregex= 'array(
'AD' => '/^AD[0-9]{2}[0-9]{8}[A-Z0-9]{12}$/''
IBAN regexes by region
array(
'AD' => '/^AD[0-9]{2}[0-9]{8}[A-Z0-9]{12}$/'
Details
__construct(
string|\Zend_Config|\Zend_Locale $locale
=
null
)
:
void
Sets validator options
Name | Type | Description |
---|---|---|
$locale | string|\Zend_Config|\Zend_Locale | OPTIONAL |

getLocale(
)
:
string|\Zend_Locale|null
Returns the locale option
Type | Description |
---|---|
string|\Zend_Locale|null |

isValid(
string $value
)
:
boolean
Defined by Zend_Validate_Interface
Returns true if $value is a valid IBAN
Name | Type | Description |
---|---|---|
$value | string |
Type | Description |
---|---|
boolean |

setLocale(
string|\Zend_Locale $locale
=
null
)
:
\Zend_Validate_Date
Sets the locale option
Name | Type | Description |
---|---|---|
$locale | string|\Zend_Locale |
Type | Description |
---|---|
\Zend_Validate_Date | provides a fluent interface |