Friday, November 20
Trending
- US Outages Explained: What Happened to Microsoft, FAA and Banks
- Microsoft 365 Outage: Outlook, Teams and Copilot Down. What We Know
- Diwali Online Shopping Scams 2026: 10 Ways to Stay Safe
- 10 Best DDoS Protection Services for 2027
- 12 Best Web Application Firewalls (WAF) for 2027
- Best Ethical Hacking Tools in 2027: Free & Paid Picks
- Software supply chain attacks 2026: Timeline and developer checklist
- Binance Hack: $6.3 Billion Drained in the Largest Crypto Theft Ever. What We Know So Far
Data types are used to carry various types of data or values. PHP supports 8 primitive data types that can be categorized into 3 types:
- Scalar Types (predefined)
- Compound Types (user-defined)
- Special Types
Scalar Types (predefined)
It stores only a single value. There are 4 scalar data types in PHP.
- boolean
- float
- integer
- string
Compound Types (user-defined)
Compound data types can store multiple values. PHP supports two types of compound data types.
- array
- object
Special Types
PHP supports two types of compound data types.
- resource
- NULL



