PHP Data types: Total 8
- Integer
- Float
- Null
- Boolean
- String
- Array
- Object
- Resources
PHP is loosely type language. Means it convert the data type according to the situation automatically. This auto conversion is called type Juggling or type coercion. This auto converting data type is risky behavior in our application so we can restrict this by declaring strict_type true at top of the file.
declare(strict_type = 1);