previousValidate_FI::carLicensePlate (Previous) (Next) Validate_FI::pinnext

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

Validate_FI::bikeLicensePlate() – Validate Finnish motorbike license plate number

Synopsis

require_once 'Validate/FI.php';

bool Validate_FI::bikeLicensePlate ( string $number )

Description

Validate Finnish motorbike license plate number. Format: AAAXXX. First or only number cannot be zero.

Where AAA is 2-3 letters UPPERCASE A-Z + ÅÄÖ and XXX is 1-3 numbers. Letters and numbers are actually in separate lines.

Parameter

string $number

The license plate number to be validated

Return value

boolean - true if license plate number is valid, false otherwise

Example

Using bikeLicensePlate()

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

$bikeLicensePlate 'ABC123';
if ( 
Validate_FI::bikeLicensePlate($bikeLicensePlate) ) {
    print 
'Valid';
} else {
    print 
'Not valid!';
}
?>
previousValidate_FI::carLicensePlate (Previous) (Next) Validate_FI::pinnext

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.