© Gunnard Engebreth, Satej Kumar Sahu 2023
G. Engebreth, S. K. SahuPHP 8 Basicshttps://doi.org/10.1007/978-1-4842-8082-9_4

4. Data and Data Types

Gunnard Engebreth1   and Satej Kumar Sahu2
(1)
Madison, WI, USA
(2)
Bangalore, India
 

In this chapter, you will learn how PHP deals with data and data types and how variables are used to store data in PHP, from simple strings and numbers to more complicated arrays and objects.

A data type is how you classify data into a certain category according to its attributes, which can be
  • Alphanumeric: Where characters are classified as strings

  • Whole numbers: Which are classified integers

  • Floating points: Which are numbers with decimal points

  • Boolean: Which can be true or false

This chapter will cover the following topics: ...

Get PHP 8 Basics: For Programming and Web Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.