Variables can store data of different types, and different data types can do different things. PHP supports the following data types:
A string is a sequence of characters, like "Hello world!". A string can be any text inside quotes. You can use single or double quotes:
An integer data type is a non-decimal number between -2,147,483,648 and 2,147,483,647.
A float is a number with a decimal point or a number in exponential form.
A Boolean represents two possible states: TRUE or FALSE. Booleans are often used in conditional testing.
An array stores multiple values in one single variable.
Null is a special data type which can have only one value: NULL. A variable of data type NULL is a variable that has no value assigned to it.
var_dump() function to see the data type and the value of any variable. It is extremely helpful for debugging!