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?

王林
Release: 2023-02-24 13:32:02
Original
3266 people have browsed it

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template