soldatov / gettype
Collection of types that the function gettype() returns.
Installs: 1 104
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
pkg:composer/soldatov/gettype
Requires
- php: ~5.3 || ~7.0 || ~8.0
This package is auto-updated.
Last update: 2025-10-04 15:50:33 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'; }