PHP Data Types
Variables can store data of different types, and different data types can do different things.
PHP supports the following data types:
- Float (floating point numbers – also called double)
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:
$x = “Hello world!”;
$y = ‘Hello world!’;