Variables in PHP

The fundamental concept of any programming language is a variable. A variable is a container in which we can store some data, for example, strings or numbers.

Each variable must have a name that can consist of Latin letters, numbers, and underscores. However, in PHP, before a variable, the dollar sign $ must be written, and the first character of the variable name cannot be a digit.