Validate_FI::partyId
Validate_FI::partyId() – Validate Finnish Party Identification number (OVT-tunnus)
Synopsis
require_once 'Validate/FI.php';
bool Validate_FI::partyId
(
integer $number
)
Description
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.
Parameter
-
integer
$number
-
Party Identification number to be validated
Return value
boolean - true if number is valid, false otherwise
Example
Using partyId()
<?php
// Include the package
require_once 'Validate/FI.php';
$partyId = '003715728600';
if ( Validate_FI::partyId($partyId) ) {
print 'Valid';
} else {
print 'Not valid!';
}
?>