Concept

How are variables and variable types handled in PHP?

ComputerScienceOne / Entry Point & Command Line Arguments

"37.3. Variables PHP is a dynamically typed language. As a consequence, you do not declare variables before you start using them. If you need to store a value into a variable, you simply name the variable and use an assignment operator to assign the value. Since you do not declare variables, you also do not specify a variable’s type. If you assign a string value to a variable, its type becomes a string. If you assign an integer to a variable, its type becomes an integer. If you reassign the value of a variable to a value with a different type, the variable’s type also changes."

Related Ideas

How are variables and variable types handled in PHP? | ComputerScienceOne | Bifalgorithm | Bifalgorithm