bool Validate_FI::refNum
(
string $number
)
Validate Finnish bank reference number.
This method checks the bank reference number according to Finnish Bank Association.
$number
Finnish bank reference number to be validated (spaces and dashes tolerated)
boolean - true if reference number is valid, false otherwise
Using refNum()
<?php
// Include the package
require_once 'Validate/FI.php';
$refNum = '61 74354';
if ( Validate_FI::refNum($refNum) ) {
print 'Valid';
} else {
print 'Not valid!';
}
?>