check if the given value is a boolean
static boolean
isBool
(string $val)
check if the given value is an email
static boolean
isEmail
(string $val)
check if the given value is a float
static boolean
isFloat
(string $val, [int $min = null], [int $max = null])
-
string
$val: the value
-
int
$min: minimum value (optional), null if no minimum
-
int
$max: maximum value (optional), null if no maximum
check if the given value is an hexadecimal integer
static boolean
isHexInt
(string $val, [int $min = null], [int $max = null])
-
string
$val: the value
-
int
$min: minimum value (optional), null if no minimum
-
int
$max: maximum value (optional), null if no maximum
check if the given value is an integer
static boolean
isInt
(string $val, [int $min = null], [int $max = null])
-
string
$val: the value
-
int
$min: minimum value (optional), null if no minimum
-
int
$max: maximum value (optional), null if no maximum
check if the given value is an IP version 4
static boolean
isIPv4
(string $val)
check if the given value is an IP version 6
static boolean
isIPv6
(string $val)
check if the given value is
static boolean
isUrl
(string $url, [ $schemeRequired = false], [ $hostRequired = false], [ $pathRequired = false], [ $queryRequired = false])
-
string
$url: the url
-
$schemeRequired
-
$hostRequired
-
$pathRequired
-
$queryRequired
static void
usePhpFilter
()