bool Validate_FI::partyId
(
integer $number
)
Validate Finnish Party Identification number (OVT-tunnus).
The Finnish Party Identification number (OVT-tunnus) is a 12-17 digit number and it is generated from Business ID.
Example: 0037AAAAAAAABBBBB, 0037 indicates Finland, AAAAAAAA is the Business ID and BBBBB is optional organization number.
$number
Party Identification number to be validated
boolean - true if number is valid, false otherwise
Using partyId()
<?php
// Include the package
require_once 'Validate/FI.php';
$partyId = '003715728600';
if ( Validate_FI::partyId($partyId) ) {
print 'Valid';
} else {
print 'Not valid!';
}
?>