For any programming language variables are act as and storing unit / container that stores some information.Php variables always starts with the dollar ($) symbol and followed by the variable name, actually $ symbol represents the preprocessor.These Variable contains the value of its latest last assignment and will be updated if any new assignment occurred.
Php Variables can be declare as follows ” $variable_name “.
Php Variables naming conventios
- A php variable must only starts with a letter or underscore (eg.$ _phpvariable , $phpvariable).
- A php variable can only contains alphabets, numeric characters and underscores. (eg. $php_variable , $php011). More