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
|
#
|
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 $orRelativeClass = true, bool $orResource = true): bool
Check if a string is a built-in type
Check if a string is a built-in type
Parameters
$orRelativeClass |
If true , treat "parent" , "self" and
"static" as built-in types.
|
$orResource |
If true , treat "resource" as a built-in 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
|
#
|