PHP- What is Variables
In PHP, a variable is a container that stores a value or a reference to a value. A variable is represented by a dollar sign ($) followed by the variable name. Variable names are case-sensitive. Here are some examples of declaring variables in PHP: In the above example, $name is a string variable that stores…