Validate_FI::bikeLicensePlate() -- Validate Finnish motorbike license plate number
Описание
Validate Finnish motorbike license plate number. Format: AAAXXX.
Where AAA is 2-3 letters UPPERCASE A-Z and XXX is 1-3 numbers. Letters and numbers are actually in separate lines.
Параметр
- string $number
The license plate number to be validated
Возвращаемое значение
boolean - true if license plate number is valid, false otherwise
Пример
Пример 62-1.
Using bikeLicensePlate()
<?php
// Include the package
require_once 'Validate/FI.php';
$bikeLicensePlate = 'ABC123';
if ( Validate_FI::bikeLicensePlate($bikeLicensePlate) ) {
print 'Valid';
} else {
print 'Not valid!';
}
?>
|
|