Validate_FI::refNum

Validate_FI::refNum() – Validate Finnish bank reference number

Synopsis

require_once 'Validate/FI.php';

bool Validate_FI::refNum ( string $number )

Описание

Validate Finnish bank reference number.

This method checks the bank reference number according to Finnish Bank Association.

Parameter

string $number

Finnish bank reference number to be validated (spaces and dashes tolerated)

Return value

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!';
}
?>
    Поддержать сайт на родительском проекте КГБ