A variable is used to store information and it is accessible later in the program.
It has a user-defined name.
In PHP you don’t need to specify the Datatype of a variable it automatically converts its type according to the assigned value.
There are different types of variables are available –
- Local variable
- Global variable
- Static variable