Variables are containers that can store information which can be manipulated or referenced later by the programmer within the code.
In PHP, we don’t need to declare the variable type explicitly. The type of variable is determined by the value it stores. There are some important things to know about variables in PHP.
For Example:
<?php
$txt = "Hello world!"; # Type String
$x = 5; # Type int
$y = 10.5; # Type Float
?>