Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added United Arab Emirates (AE) (only in IBAN_Registry.txt, missing i…

…n the .pdf version)

git-svn-id: http://svn.php.net/repository/pear/packages/Validate/trunk@307356 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
commit 2abd15bda001b57449e77769fa8c5f863a2756fc 1 parent d55c3ae
Hartmut Holzgraefe authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 Validate/Finance/IBAN.php
View
5 Validate/Finance/IBAN.php
@@ -80,6 +80,7 @@ function _getCountrycodeCountryname()
if (!isset($_iban_countrycode_countryname)) {
$_iban_countrycode_countryname = array(
'AD' => 'Andorra',
+ 'AE' => 'United Arab Emirates',
'AL' => 'Albania',
'AT' => 'Austria',
'BA' => 'Bosnia and Herzegovina',
@@ -146,6 +147,7 @@ function _getCountrycodeIBANLength()
if (!isset($_iban_countrycode_length)) {
$_iban_countrycode_length = array(
'AD' => 24,
+ 'AE' => 23,
'AL' => 28,
'AT' => 20,
'BA' => 20,
@@ -214,6 +216,7 @@ function _getCountrycodeBankcode()
$_iban_countrycode_bankcode = array(
//AD: first 4 chars bankcode, last 4 chars branch
'AD' => array('start' => 4, 'length' => 8),
+ 'AE' => array('start' => 4, 'length' => 3),
//AL: first 3 chars bankcode, next 4 chars branch, one char checksum
'AL' => array('start' => 4, 'length' => 8),
'AT' => array('start' => 4, 'length' => 5),
@@ -301,6 +304,7 @@ function _getCountrycodeBankaccount()
if (!isset($_iban_countrycode_bankaccount)) {
$_iban_countrycode_bankaccount = array(
'AD' => array('start' => 12, 'length' => 12),
+ 'AE' => array('start' => 7, 'length' => 23),
'AL' => array('start' => 12, 'length' => 16),
'AT' => array('start' => 9, 'length' => 11),
//BA: followed by 2 chars (checksum)
@@ -383,6 +387,7 @@ function _getCountrycodeRegex()
if (!isset($_iban_countrycode_regex)) {
$_iban_countrycode_regex = array(
'AD' => '/^AD[0-9]{2}[0-9]{8}[A-Z0-9]{12}$/',
+ 'AE' => '/^AE[0-9]{2}[0-9]{3}[0-9]{16}$/',
'AL' => '/^AL[0-9]{2}[0-9]{8}[A-Z0-9]{16}$/',
'AT' => '/^AT[0-9]{2}[0-9]{5}[0-9]{11}$/',
'BA' => '/^BA[0-9]{2}[0-9]{6}[0-9]{10}$/',
Please sign in to comment.
Something went wrong with that request. Please try again.