PHP Basics: Variables
What’s a Variable?
A variable is a symbolic representation of a value such as integer, string, or function result. But as its name suggest, it can change over time or vary so that it can be used many times within a script.
Variables in PHP
In PHP, variable names are going to start with a “$” sign, then they are going to be followed by a letter or an underscore “_”. A variable name is case-sensitive and can contain letters, numbers, underscores, or dashes (a-z, A-Z, 0-9, _, or -), but no spaces otherwise PHP will think that it is a new entity.
Read more


