You are here: Home / Topics / Types of variable in PHP

Types of variable in PHP

Filed under: PHP on 2022-10-31 21:26:29

The following list of PHP's eight main data types:

  • A named, sorted collection of data is called an array.
  • A logical value is a boolean (True or False)
  • Double: Numbers with floating points, like 5.1525
  • Whole numbers without a floating point represent integers.
  • An object is a class instance that includes data and functionalities.
  • A unique data type that only accepts the NULL data is NULL.
  • Special variables with references to outside resources are a resource.
  • A string is a collection of characters, such as "Hello, students!"

About Author:
P
Pritvik     View Profile
Hi, I am using MCQ Buddy. I love to share content on this website.