bool Validate_FI::vatNumber
(
string $number
)
Validate Finnish Value Added Tax number (ALV-numero). Format: FIXXXXXXXX.
The Finnish VAT number (ALV-numero) is maximum of 14 digits and is generated from Business ID.
$number
VAT number to be validated
boolean - true if VAT number is valid, false otherwise
Using vatNumber()
<?php
// Include the package
require_once 'Validate/FI.php';
$vatNumber = 'FI15728600';
if ( Validate_FI::vatNumber($vatNumber) ) {
print 'Valid';
} else {
print 'Not valid!';
}
?>