PHP types

PHP supports 10 primitive types:

Scalar types

  • boolean
  • integer
  • float (float pointing number or double)
  • string

Compound types

  • array
  • object
  • callable
  • iterable

Special types

  • resource
  • NULL