Skip to content

Wiki Type

Danijel Galić edited this page Jan 23, 2024 · 1 revision
enum Type

### Data type enum

Data type defines the type of data a variable can store.

This enum was created by Danijel Galić <danijel.galic@outlook.com>
Copyright: 2024 FireHub Web Application Framework
License: <https://opensource.org/licenses/OSL-3.0> OSL Open Source License version 3
Version: GIT: $Id$ Blob checksum.

Fully Qualified Enum Name:  \FireHub\Core\Support\Enums\Data\Type
Source code:  view source code
Blame:  view blame
History:  view history

Cases

Name Title Value
T_BOOL ### A bool expresses a truth value, it can be either true or false
T_INT ### An int is a number of the set Z = {..., -2, -1, 0, 1, 2, ...}
T_FLOAT ### A floating-point number is represented approximately with a fixed number of significant digits
T_STRING ### A string is a series of characters, where a character is the same as a byte
T_ARRAY ### An ordered map where map is a type that associates values to keys
T_OBJECT ### An object is an individual instance of the data structure defined by a class
T_NULL ### The special null value represents a variable with no value
T_RESOURCE ### The special resource type is used to store references to some function call or to external PHP resources

Methods

Type Name Title
public category ## Gets data type category
public Type::category():\FireHub\Core\Support\Enums\Data\Category

## Gets data type category

Source code:  view source code
Blame:  view blame

Returns

T_BOOL

### A bool expresses a truth value, it can be either true or false

Source code:  view source code
Blame:  view blame

T_INT

### An int is a number of the set Z = {..., -2, -1, 0, 1, 2, ...}

Source code:  view source code
Blame:  view blame

T_FLOAT

### A floating-point number is represented approximately with a fixed number of significant digits

Source code:  view source code
Blame:  view blame

T_STRING

### A string is a series of characters, where a character is the same as a byte

Source code:  view source code
Blame:  view blame

T_ARRAY

### An ordered map where map is a type that associates values to keys

Source code:  view source code
Blame:  view blame

T_OBJECT

### An object is an individual instance of the data structure defined by a class

Source code:  view source code
Blame:  view blame

T_NULL

### The special null value represents a variable with no value

Source code:  view source code
Blame:  view blame

T_RESOURCE

### The special resource type is used to store references to some function call or to external PHP resources

Source code:  view source code
Blame:  view blame

Clone this wiki locally