PHP supports the following data types :
- String
- Integer
- Float
- Boolean
- Array
- Object
- NULL
1 - String
A string is like "Hello Friend!", you can write any text inside single or double-quotes.
Example -
<?php
// Double quotes
$a = "Hello Short Tutorials";
// Single quotes
$a = 'Hello Short Tutorials';
echo $a; // Output will be same for single and double quotes
// if you want to see data type of your variable, so you can use var_dump() var_dump($a);
?>
For more information check out this link and know about PHP Data types