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.
There are different types of variable are available –
- Local variable
- Global variable
- Static variable