PHP Data Types
PHP supports the following data types:
- Integer - Used for whole numbers
- Double - Used for whole numbers
- String - Used for strings of characters
- Boolean - It can be either TRUE or FALSE
- Array - Used to store multiple data items of the same type
- Object - Used for storing instances of classes.
Usually in progamming languages, variables can only hold one type of data, but in PHP, the type of a variable is determined by the value assigned to it.