PHP data types are used to hold different types of data or values. PHP supports 8 primitive data types that can be categorized further in 3 types:
- Scalar Types
- Compound Types
- Special Types
PHP data types are used to hold different types of data or values. PHP supports 8 primitive data types that can be categorized further in 3 types:
PHP supports ten primitive types.
Four scalar types:
Four compound types:
Two special types:
PHP supports the following data types: