Data types in PHP 8

Source: Internet
Author: User

Tags: span address using BLE to speak decimal double res Save

PHP supports eight types of data altogether

4 Types of scalar data

  1. The Boolean Boolean has only two values of true and flase
  2. Integer shaping includes positive and negative integers, no decimal digits
  3. Float/double floating-point type, for storing numbers, with decimal digits
  4. String string type, which can store a collection of all characters

2 Types of Compliance

  1. Array of arrays, all types of the same variable combination
  2. Object object, which is the case of an object, uses the "New Class ()" constructor to copy the class, and the clone of the class is referred to as the case of the class

2 Special types:

  1. The resource resource type, a special variable, also known as a handle, is a resource address stored in memory, specifically the address of a MySQL server connection object that is stored in an in-memory file or virtual table.
  2. A null type that indicates that the variable has no value, and that the only value is null,null and null are the same

Data types in PHP 8

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

Tags Index: