Explain variable in php and how to declare variable
Answers
Answered by
2
In PHP, a variable does not need to be declared before adding a value to it. PHP automatically converts the variable to the correct data type, depending on its value.
After declaring a variable it can be reused throughout the code.
The assignment operator ( = ) used to assign value to a variable.
After declaring a variable it can be reused throughout the code.
The assignment operator ( = ) used to assign value to a variable.
Similar questions