Wednesday, January 16, 2013

PHP Supports Data type


PHP supports eight primitive types.
Four scalar types:
  • boolean
  • integer
  • float (floating-point number, aka 'double')
  • string
Two compound types:
  • array
  • object
And finally two special types:
  • resource
  • NULL
This manual also introduces some pseudo-types for readability reasons:
  • mixed
  • number
  • callback 


No comments:

Post a Comment