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

2. PHP Fundamentals

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

In order to build useful tools in PHP, you need to know how to manipulate data. Programming languages use variables to store and manipulate data.

In this chapter, you will learn how programming languages use variables to store and manipulate data and to build useful tools in PHP.

Additionally, you’ll explore the following topics:
  • Using errors as tools

  • Objects

  • Verbs: GET and POST

Variables

PHP has a few rules when it comes to variables:
  • A variable must start with the $ sign, followed by the name of the variable.

  • A variable name must start ...

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.