File path: dist/twist/Core/Utilities/Validate.utility.php
Namespace: Twist\Core\Utilities
Extends: Base
Type: Utility
Validate
— Data validation utility can validate different types of data i.e Email Address, URLS, Telephone numbers, UK Postcodes and much more.
Also includes a testing suite that allows testing of an array of data providing detailed results, very useful for HTML form validation.
<?php
//Set the variables for the example
$strEmailAddress = 'foo';
//Call the function email with the example vars
Twist::Validate() -> email($strEmailAddress);
Method | Access | Returns |
---|---|---|
createTest | public | void |
compare | public | void |
public | void | |
domain | public | void |
url | public | void |
ip | public | void |
timestring | public | void |
datestring | public | void |
datetime | public | void |
boolean | public | void |
float | public | void |
integer | public | void |
string | public | void |
telephone | public | void |
postcode | public | void |
regx | public | void |