Working With Data
MAR 25
PHP Data Types
A typical PHP script works on various types of data such as strings, integers, and Booleans. This classification is used to represent how that data can be manipulated. PHP has native support for both scalar data-types such as integers, strings, and Boolean and compound data-types like arrays and objects. PHP also supports two special data-types called resource and null, we’ve mentioned them here for the sake of completeness, but we’ll cover these data-types along with the array and object types in there respective tutorials.
