Introduction

Introduction – introduction to Validate_FI

Description

Specific validation methods for data used in Finland.

Usage

General usage

Every module of Validate follows the same philosophy. Propose some validation method which returns a boolean result.

Some methods have some optional parameters to set stronger checks.

Sample using phoneNumber()

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

// Validate Finnish telephone number
$phoneNumber '+358 40 1234567';
if ( 
Validate_FI::phoneNumber($phoneNumber) ) {
    print 
'Valid';
} else {
    print 
'Not valid!';
}
?>

Output:

    
Valid
    
   
Validate_FI (Previous) Validate_FI::postalCode (Next)
Last updated: Tue, 02 Jun 2009 — 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.