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

4. Modular Programming

Steve Prettyman1 
(1)
Key West, FL, USA
 

I just saw my life flash before my eyes and all I could see was a close tag…

Chapter Objectives/Student Learning Outcomes

After completing this chapter, the student will be able to
  • Create an error-free, simple objected-oriented (OO) modular PHP program

  • Create a PHP class and make an instance of the class (object)

  • Create an OO PHP encapsulated program, including GET and SET methods

  • Create PHP methods (functions) that accept parameters and return information

  • Create PHP public and private properties (variables)

  • Import existing PHP code from another file or library into a program

  • Validate information received ...

Get Learn PHP 8: Using MySQL, JavaScript, CSS3, and HTML5 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.