is_bool
Intervention/image
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Finds out whether a variable is a boolean
is_bool
(
mixed $value
):
bool
switch (
strtolower
(
$type
)) {
case
'bool'
:
case
'boolean'
:
$valid
=
\is_bool
(
$value
);
$message
=
'%s accepts only boolean values as argument %d.'
;
break;
case
'int'
:
src/Intervention/Image/Commands/Argument.php