What are the data types supported in PHP?

Variables can store data of different types, and different data types can do different things. PHP supports the following data types:

  • String
  • Integer
  • Float (floating point numbers – also called double)
  • Boolean
  • Array
  • Object
  • NULL
  • Resource

Read more about PHP variables and the syntax used to create it here.

Categories: PHP