What Are Variables?
A variable is just like a container, which is used to store a changeable value. While running a program, the value of the variable is always changing.
The syntax to declare a variable is as follows:
Example 05:
The above variable declaring is from JavaScript language
“War” is a keyword, “myvariable” is a variable name.
Example 06:
The above variable declaring is from C++ language.
“int” is a keyword, “num” is a variable name.
Note:
In PHP, $ symbol is used to declare a PHP variable
“$” is a PHP variable symbol, “abc” is a variable name.