Permalink
Browse files

added Lebanon (LB)

git-svn-id: http://svn.php.net/repository/pear/packages/Validate/trunk@307350 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent a6264b9 commit a85ef4bad7df42de628534d61b368e71a607e1d8 Hartmut Holzgraefe committed Jan 10, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 Validate/Finance/IBAN.php
@@ -105,6 +105,7 @@ function _getCountrycodeCountryname()
'IS' => 'Iceland',
'IT' => 'Italy',
'KW' => 'Kuwait',
+ 'LB' => 'Lebanon',
'LI' => 'Liechtenstein',
'LT' => 'Lithuania',
'LU' => 'Luxembourg',
@@ -168,6 +169,7 @@ function _getCountrycodeIBANLength()
'IS' => 26,
'IT' => 27,
'KW' => 30,
+ 'LB' => 28,
'LI' => 21,
'LT' => 20,
'LU' => 20,
@@ -244,6 +246,7 @@ function _getCountrycodeBankcode()
'IS' => array('start' => 4, 'length' => 4),
'IT' => array('start' => 4, 'length' => 11),
'KW' => array('start' => 4, 'length' => 4),
+ 'LB' => array('start' => 4, 'length' => 4),
//LI: bankcode and branch
'LI' => array('start' => 4, 'length' => 5),
'LT' => array('start' => 4, 'length' => 5),
@@ -324,6 +327,7 @@ function _getCountrycodeBankaccount()
'IS' => array('start' => 8, 'length' => 18),
'IT' => array('start' => 15, 'length' => 12),
'KW' => array('start' => 8, 'length' => 22),
+ 'LB' => array('start' => 8, 'length' => 20),
'LI' => array('start' => 9, 'length' => 12),
'LT' => array('start' => 9, 'length' => 11),
'LU' => array('start' => 7, 'length' => 13),
@@ -394,6 +398,7 @@ function _getCountrycodeRegex()
'IS' => '/^IS[0-9]{2}[0-9]{4}[0-9]{18}$/',
'IT' => '/^IT[0-9]{2}[A-Z]{1}[0-9]{10}[A-Z0-9]{12}$/',
'KW' => '/^KW[0-9]{2}[A-Z]{4}[A-Z0-9]{22}$/',
+ 'LB' => '/^LB[0-9]{2}[A-Z]{4}[A-Z0-9]{20}$/',
'LI' => '/^LI[0-9]{2}[0-9]{5}[A-Z0-9]{12}$/',
'LU' => '/^LU[0-9]{2}[0-9]{3}[A-Z0-9]{13}$/',
'LT' => '/^LT[0-9]{2}[0-9]{5}[0-9]{11}$/',

0 comments on commit a85ef4b

Please sign in to comment.