Most PHP scripts deal with data in one form or another, usually stored in variables. PHP can work with different types of data. For example, a whole number is said to have an integer data type, while a string of text has a string data type.
In this article you explore PHP’s data types; look at loose typing; learn how to discover the type of a given value; and see how to change data types.