Variables and Data Types
This lesson discusses how you can use variables to store data and the various types of these variables, i.e., data types.
Variables
A variable in any programming language is a named piece of computer memory, containing some information inside. Variables are one of the essential parts of a computer program. You can declare a variable in PHP using a $
sign followed by its name, e.g., $myVariable
.