Static Public Member Functions | |
static | email ($email) |
Validate email, commonly used characters only. | |
static | email_rfc ($email) |
Validate email, RFC compliant version Note: This function is LESS strict than valid_email. | |
static | url ($url, $scheme= 'http') |
Validate URL. | |
static | ip ($ip) |
Validate IP. | |
static | ip_check_subnet ($ip, $net, $mask) |
Checks ip address if matches subnet and mask. | |
static | credit_card ($number, $type= 'default') |
Validates a credit card number using the Luhn (mod10) formula. | |
static | phone ($number) |
Checks if a czech phone number is valid. | |
static | alpha ($str, $utf8=FALSE) |
Checks whether a string consists of alphabetical characters only. | |
static | alpha_numeric ($str, $utf8=FALSE) |
Checks whether a string consists of alphabetical characters and numbers only. | |
static | alpha_dash ($str, $utf8=FALSE) |
Checks whether a string consists of alphabetical characters, numbers, underscores and dashes only. | |
static | digit ($str, $utf8=FALSE) |
Checks whether a string consists of digits only (no dots or dashes). | |
static | numeric ($str) |
Checks whether a string is a valid number (negative and decimal numbers allowed). | |
static | ulogd_active_count ($str) |
Checks whether a string is valid ulogd active count. | |
static | standard_text ($str) |
Checks whether a string is a valid text. | |
static | date ($date=array()) |
Checks whether a array is valid date. | |
static | date_string ($str) |
Checks whether a string is valid date. | |
static | mac_address ($str) |
Checks whether a string is valid MAC address. | |
static | ip_address ($str) |
Checks whether a string is valid IP address. | |
static | suffix ($str) |
Checks whether a string is valid URL suffix. | |
static | address_ranges ($str) |
Checks whether a string is valid network address range (in format eg. | |
static | gps_string ($str) |
Checks whether string is valid GPS string. | |
static | byte_size ($str) |
Checks whether string is valid byte-string. | |
static | speed_size ($str) |
Checks whether string is valid speed size (eg. | |
static | range ($number, $min=0, $max=100) |
Checks whether number is included in range. | |
static | bank_account ($str) |
Checks whether string is valid bank account number. |
|
static |
Checks whether a string is valid network address range (in format eg.
10.0.0.0/8)
string | $str |
|
static |
Checks whether a string consists of alphabetical characters only.
string | input string |
boolean | trigger UTF-8 compatibility |
|
static |
Checks whether a string consists of alphabetical characters, numbers, underscores and dashes only.
string | input string |
boolean | trigger UTF-8 compatibility |
|
static |
Checks whether a string consists of alphabetical characters and numbers only.
string | input string |
boolean | trigger UTF-8 compatibility |
|
static |
Checks whether string is valid bank account number.
string | $str |
|
static |
Checks whether string is valid byte-string.
string | $str |
|
static |
Validates a credit card number using the Luhn (mod10) formula.
integer | credit card number |
string | card type |
|
static |
Checks whether a array is valid date.
array | $date |
|
static |
Checks whether a string is valid date.
string | $str |
|
static |
Checks whether a string consists of digits only (no dots or dashes).
string | input string |
boolean | trigger UTF-8 compatibility |
|
static |
Validate email, commonly used characters only.
string | email address |
|
static |
Validate email, RFC compliant version Note: This function is LESS strict than valid_email.
Choose carefully.
string | email address |
|
static |
Checks whether string is valid GPS string.
string | $str |
|
static |
Validate IP.
string | IP address |
|
static |
Checks whether a string is valid IP address.
string | $str |
|
static |
Checks ip address if matches subnet and mask.
long | $ip | |
integer | $net | |
integer | $mask |
|
static |
Checks whether a string is valid MAC address.
string | $str |
|
static |
Checks whether a string is a valid number (negative and decimal numbers allowed).
string | input string |
|
static |
Checks if a czech phone number is valid.
string | phone number to check |
|
static |
Checks whether number is included in range.
type | $number |
|
static |
Checks whether string is valid speed size (eg.
in format 2M/8M)
type | $str |
|
static |
Checks whether a string is a valid text.
string | $str |
|
static |
Checks whether a string is valid URL suffix.
string | $str |
|
static |
Checks whether a string is valid ulogd active count.
string | input string |
|
static |
Validate URL.
string | URL |
string | protocol |