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