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 Finnish postal code (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.