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 )

Описание

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.

Пример: 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

Пример

Using partyId()

<?php
// Include the package
require_once 'Validate/FI.php';

$partyId '003715728600';
if ( 
Validate_FI::partyId($partyId) ) {
    print 
'Valid';
} else {
    print 
'Not valid!';
}
?>
    Поддержать сайт на родительском проекте КГБ