previousValidate_FI::partyId (Previous) (Next) Validate_FI::bankAccountnext

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::vatNumber

Validate_FI::vatNumber() – Validate Finnish Value Added Tax number (ALV-numero)

Synopsis

require_once 'Validate/FI.php';

bool Validate_FI::vatNumber ( string $number )

Description

Validate Finnish Value Added Tax number (ALV-numero). Format: FIXXXXXXXX.

The Finnish VAT number (ALV-numero) is maximum of 14 digits and is generated from Business ID.

Parameter

string $number

VAT number to be validated

Return value

boolean - true if VAT number is valid, false otherwise

Example

Using vatNumber()

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

$vatNumber 'FI15728600';
if ( 
Validate_FI::vatNumber($vatNumber) ) {
    print 
'Valid';
} else {
    print 
'Not valid!';
}
?>
previousValidate_FI::partyId (Previous) (Next) Validate_FI::bankAccountnext

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.