Home >Backend Development >PHP Problem >What are the four major categories of PHP data types?

What are the four major categories of PHP data types?

王林
王林Original
2019-09-19 17:57:253264browse

What are the four major categories of PHP data types?

PHP data type classification

##1.Basic data types

1.1 Integer type

$a = 0123; // 八进制数(是以0开头) 83
$a = 0x1A; // 十六进制数              26

1.2 Decimal type (floating number) includes single precision and double precision

1.3 Boolean type (representing true and false)

1.4 String


2. Composite data type

2.1 Array

2.2 Object

3. Special data types

3.1null

Recommended tutorial: PHP video tutorial

The above is the detailed content of What are the four major categories of PHP data types?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn