bool Validate_FI::bankAccount
(
string $number
)
Validate Finnish bank account number. Format: XXXXXX-XXXXXXXX, 6 digits, - and 2-8 digits.
This method checks the bank account number according to Finnish Bank Association.
$number
Finnish bank account number to be validated
boolean - true if bank account is valid, false otherwise
Using bankAccount()
<?php
// Include the package
require_once 'Validate/FI.php';
$bankAccount = '159030-776';
if ( Validate_FI::bankAccount($bankAccount) ) {
print 'Valid';
} else {
print 'Not valid!';
}
?>