soldatov/gettype

Collection of types that the function gettype() returns.

Maintainers

Details

github.com/soldatov/gettype

Source

Installs: 1 104

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

pkg:composer/soldatov/gettype

v1.0.1 2022-02-04 08:02 UTC

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';
 }