© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
J. Lengstorf et al.PHP 8 for Absolute Beginnershttps://doi.org/10.1007/978-1-4842-8205-2_2

2. Understanding PHP: Language Basics

Jason Lengstorf1  , Thomas Blom Hansen2 and Steve Prettyman3
(1)
No 392, Portland, OR, USA
(2)
Kirke Saaby, Denmark
(3)
Palm Bay, FL, USA
 

Objectives

After completing this chapter, you will be able to
  • Embed PHP in web pages

  • Add comments in code

  • Create and use variables

  • Decipher PHP errors

  • Create an HTML5 template

  • Create and use basic objects

  • Concatenate strings

  • Access URL variables with $_GET

  • Declare a class

  • Embed CSS

In the first chapter, we developed our very first PHP program. While it was basic, we were able to test the development environment ...

Get PHP 8 for Absolute Beginners: Basic Website and Web Application 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.