Types
Table of Contents
Enums
- Type
- Possible types as returned by {@see gettype()}.
Functions
- is_closed_resource() : mixed
- Finds whether the given variable is a {@link https://www.php.net/types.resource resource} that has been closed.
- is_zero() : bool
- Finds whether the given number is (sufficiently close to) 0.
Functions
is_closed_resource()
Finds whether the given variable is a {@link https://www.php.net/types.resource resource} that has been closed.
is_closed_resource(T $value) : mixed
Parameters
- $value : T
-
The variable being evaluated.
Return values
mixed —Returns true
if value is a
resource variable that has been
closed, false
otherwise.
is_zero()
Finds whether the given number is (sufficiently close to) 0.
is_zero(int|float $value[, float|null $tolerance = PHP_ZERO_TOLERANCE ]) : bool
Parameters
- $value : int|float
-
The number being evaluated.
- $tolerance : float|null = PHP_ZERO_TOLERANCE
-
Tolerance allowed when evaluating the number.
Return values
bool —Returns true if value is (sufficiently close to) 0, false otherwise.