Visit the Official PHP Website
By James N Hitz
Back to Variables aka Scalars
You've just learnt that PHP variables are... "little boxes" in the computer's memory that are given a name and a value. The value is assigned using the assignment operator (=).
Even though there are no different variables according to data type, we said that the PHP variables will define themselves accordingly depending on the data assigned. The data could be:
Integers, Floating Point Numbers and Strings are called scalars. This means that they only can retain ONE value. It is also possible to have arrays. An array is a collection of several things. We will get into this later.
In the mean time we consider Data Conversion and Type Jugling - these allow users to change a value to either a string, a floating point number or an integer. Sounds like fun. True? Ok Maestro... Clowns we become!