soldatov / gettype
Collection of types that the function gettype() returns.
v1.0.1
2022-02-04 08:02 UTC
Requires
- php: ~5.3 || ~7.0 || ~8.0
This package is auto-updated.
Last update: 2025-06-04 15:12:49 UTC
README
Class that contains options for the return data of the gettype($var)
function.
class Types { const TYPE_BOOLEAN = 'boolean'; const TYPE_INTEGER = 'integer'; const TYPE_FLOAT = 'double'; const TYPE_STRING = 'string'; const TYPE_ARRAY = 'array'; const TYPE_OBJECT = 'object'; const TYPE_RESOURCE_OPEN = 'resource'; const TYPE_RESOURCE_CLOSED = 'resource (closed)'; const TYPE_NULL = 'NULL'; /** @deprecated */ const TYPE_RESOURCE_UNKNOWN = 'unknown type'; }