Type builtins
| Function | Signature | Returns | AOT | eval() |
|---|---|---|---|---|
boolval() | (mixed $value): bool | bool | ✓ | ✓ |
ctype_alnum() | (string $text): bool | bool | ✓ | ✓ |
ctype_alpha() | (string $text): bool | bool | ✓ | ✓ |
ctype_digit() | (string $text): bool | bool | ✓ | ✓ |
ctype_space() | (string $text): bool | bool | ✓ | ✓ |
floatval() | (mixed $value): float | float | ✓ | ✓ |
get_resource_id() | (resource $resource): int | int | ✓ | ✓ |
get_resource_type() | (resource $resource): string | string | ✓ | ✓ |
gettype() | (mixed $value): string | string | ✓ | ✓ |
intval() | (mixed $value, int $base = 10): int | int | ✓ | ✓ |
is_array() | (mixed $value): bool | bool | ✓ | ✓ |
is_bool() | (mixed $value): bool | bool | ✓ | ✓ |
is_callable() | (mixed $value): bool | bool | ✓ | ✓ |
is_double() | (mixed $value): bool | bool | ✓ | ✓ |
is_float() | (mixed $value): bool | bool | ✓ | ✓ |
is_int() | (mixed $value): bool | bool | ✓ | ✓ |
is_integer() | (mixed $value): bool | bool | ✓ | ✓ |
is_iterable() | (mixed $value): bool | bool | ✓ | ✓ |
is_long() | (mixed $value): bool | bool | ✓ | ✓ |
is_null() | (mixed $value): bool | bool | ✓ | ✓ |
is_numeric() | (mixed $value): bool | bool | ✓ | ✓ |
is_object() | (mixed $value): bool | bool | ✓ | ✓ |
is_real() | (mixed $value): bool | bool | ✓ | ✓ |
is_resource() | (mixed $value): bool | bool | ✓ | ✓ |
is_scalar() | (mixed $value): bool | bool | ✓ | ✓ |
is_string() | (mixed $value): bool | bool | ✓ | ✓ |
settype() | (mixed $var, string $type): bool | bool | ✓ | ✓ |
strval() | (mixed $value): string | string | ✓ | ✓ |
var_export() | (mixed $value, bool $return = false): mixed | mixed | ✓ | — |