Methods |
public
static
|
isBoolean(mixed $value): bool
Check if a value is a boolean or boolean string
Check if a value is a boolean or boolean string
The following are regarded as boolean strings (case-insensitive):
-
"1" , "0"
-
"on" , "off"
-
"true" , "false"
-
"y" , "n"
-
"yes" , "no"
-
"enable" , "disable"
-
"enabled" , "disabled"
|
#
|
public
static
|
isInteger(mixed $value): bool
Check if a value is an integer or integer string
Check if a value is an integer or integer string
|
#
|
public
static
|
isFloat(mixed $value): bool
Check if a value is a float or float string
Check if a value is a float or float string
Returns false if $value is an integer string.
|
#
|
public
static
|
isNumericKey(mixed $value): bool
Check if a value is an integer or would be cast to an integer if used as
an array key
Check if a value is an integer or would be cast to an integer if used as
an array key
|
#
|
public
static
|
isDateString(mixed $value): bool
Check if a value is a valid date string
Check if a value is a valid date string
|
#
|
public
static
|
isStringable(mixed $value): bool
Check if a value is a string or Stringable
Check if a value is a string or Stringable
|
#
|
public
static
|
isBetween(int|float $value, int|float $min, int|float $max): bool
Check if a value is a number within a range
Check if a value is a number within a range
|
#
|
public
static
|
isBuiltinType(string $value): bool
Check if a value is a reserved PHP type
Check if a value is a reserved PHP type
|
#
|
public
static
|
isFqcn(mixed $value): bool
Check if a value is a valid PHP class name
Check if a value is a valid PHP class name
|
#
|