Validate_FI::businessId() -- Validate Finnish Business ID (Y-tunnus)
Description
Validate Finnish Business ID (Y-tunnus). Format: xxxxxxx-y.
The Finnish Business ID number (Y-tunnus) is a 9 digit number.
The last digit is a control number (y).
Paramètres
- chaîne de caractères $number
Business ID number to be validated
Valeur retournée
booléen - true if Business ID is valid, false otherwise
Exemple
Exemple 66-1.
Using businessId()
<?php
// Include the package
require_once 'Validate/FI.php';
$businessId = '1572860-0';
if ( Validate_FI::businessId($businessId) ) {
print 'Valid';
} else {
print 'Not valid!';
}
?>
|
|