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!';
}
?>
Validate Finnish Business ID (Y-tunnus) (Previous) Validate Finnish Value Added Tax number (ALV-numero) (Next)
Last updated: Sun, 19 Oct 2014 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:

User Notes:

There are no user contributed notes for this page.