Data Types define the type of data a variable can store. PHP allows eight different types of data types. All of them are discussed below. There are pre-defined, user-defined, and special data types.
The predefined data types are:
- Boolean
- Integer
- Double
- String
The user-defined (compound) data types are:
- Array
- Objects
The special data types are:
- NULL
- resource
0 Comments