Datatypes in PHP : Tutorial




Variables in PHP can store/hold data, the data can be of various kind e.g. integer, decimal, etc.

In Php we have,

8 Primitive Datatypes


Four scalar(base) types:
- boolean
- integer
- float (also known as floating-point number or double)
- string

Two compound types:
- array
- object

Two special types:
- resource
- NULL