PHP Data Types
Understanding PHP Data Types.
PHP Data Types
Variables can store data of different types, and different data types can do different things.
PHP supports the following data types:
- String
- Integer
- Float (floating point numbers - also called double)
- Boolean
- Array
- Object
- NULL
- Resource
You can get the data type of an object by using the var_dump() function.