© Steve Prettyman 2020
S. PrettymanLearn PHP 8https://doi.org/10.1007/978-1-4842-6240-5_3

3. The Basics: PHP 8 Syntax

Steve Prettyman1 
Key West, FL, USA

Yes, I am a terrible coder, but I am probably still better than you :)

—Rasmus Lerdorf

Chapter Objectives/Student Learning Outcomes

After completing this chapter, the student will be able to
  • Create a simple, error-free PHP program

  • Understand the use and value of conditional statements

  • Understand the use and value of for, while, and foreach loops

  • Understand the use and value of functions

  • Understand the use and value of arrays

The Basic Syntax

In the next chapter, we will begin exploring modular programming. However, before we start that discussion, let us do a quick review of some of the basic components ...

Get Learn PHP 8: Using MySQL, JavaScript, CSS3, and HTML5 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.