example 1
<?php
$Return_verify=sh_verify("YourString", array(
"EmptyCheck"=>true,
"is_numeric"=>false, // ture / false
"is_email"=>false, // ture / false
"strlen"=>"1|11", // Min|Max (email:3|320) (is_numeric:Min|Max Number)
"prefix"=>"ip", // start with (without capital sensitive)
"prefix=="=>"ip", // start with (with capital sensitive)
"suffix"=>"sa", // end with (without capital sensitive)
"suffix=="=>"sa", // end with (with capital sensitive)
"SQLcheck"=>"users|Username" // check in table|colum exist
));
?>
return [
"Status"=>"",
"Code"=>"",
"Msg"=>""
]
| ERROR Information ERROR_Fun_Verify_ |
| ERROR | Description |
| 001 | is empty |
| 002 | is not numeric |
| 003 | is not email |
| 004 | minimum characters / minimum numeric |
| 005 | maximum characters / maximum numeric |
| 006 | prefix is not same (without capital sensitive) |
| 007 | prefix is not same (with capital sensitive) |
| 008 | suffix is not same (without capital sensitive) |
| 009 | suffix is not same (with capital sensitive) |
| 010 | No Data in SQL |