File: Docs/Validator.txt

Recommend this page to a friend!
  Classes of Minh Tien  >  Codeme PHP Framework  >  Docs/Validator.txt  >  Download  
File: Docs/Validator.txt
Role: Documentation
Content type: text/plain
Description: Documentation
Class: Codeme PHP Framework
MVC Web application development framework
Author: By
Last change:
Date: 6 years ago
Size: 370 bytes
 

Contents

Class file image Download
//Check valid it wil return bool (true/false)

$valid=Validator::make(array(

//username have min length is 5 & must is alpha (a-z A-Z)

'username'=>'required|min:5|alpha',

//Email have email format & max length is 100

'email'=>'required|email|max:100',

//Phone must is number & min length is 9

'phone'=>'required|number|min:9'

));

if($valid)

{

//do something

}
For more information send a message to info at phpclasses dot org.