previousValidate_FI::finuid (Previous) (Next) Validate_FI::partyIdnext

View this page in Last updated: Sun, 18 Oct 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

Validate_FI::businessId

Validate_FI::businessId() – Validate Finnish Business ID (Y-tunnus)

Synopsis

require_once 'Validate/FI.php';

bool Validate_FI::businessId ( string $number )

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).

Parameter

string $number

Business ID number to be validated

Return value

boolean - true if Business ID is valid, false otherwise

Example

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!';
}
?>
previousValidate_FI::finuid (Previous) (Next) Validate_FI::partyIdnext

Download Documentation Last updated: Sun, 18 Oct 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.