What are data types in php?

Last updated 5 years ago | 1271 views 75     5

Tags:- PHP

PHP | What are data types 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