SHcms Tutorial

SH CMS SH HTML SH PHP SH CSS SH Javascript SH Plug-ins (APPS) SH Template SH Suites SH Projects SH Admin Panel SH Install
SHcms / PHP / Function / verify
Last modi. : 13-January-2022 13:33:19

Verify your string

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_
ERRORDescription
001is empty
002is not numeric
003is not email
004minimum characters / minimum numeric
005maximum characters / maximum numeric
006prefix is not same (without capital sensitive)
007prefix is not same (with capital sensitive)
008suffix is not same (without capital sensitive)
009suffix is not same (with capital sensitive)
010No Data in SQL