O'Reilly logo

Learn PHP 7: Object-Oriented Modular Programming using HTML5, CSS3, JavaScript, XML, JSON, and MySQL by Steve Prettyman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 5

image

Handling and Logging Exceptions

“The education of a man is never completed until he dies.” —Robert E. Lee (As quoted in Peter’s Quotations: Ideas for Our Time (1977) by Laurence J. Peter, p. 175)

Chapter Objectives/Student Learning Outcomes

After completing this chapter, the student will be able to:

  • Explain the difference between errors and exceptions
  • Create a PHP program that can handle general exceptions
  • Create a PHP program that can create, raise, and handle user exceptions
  • Explain and use a switch and/or embedded if/else statement
  • Create a PHP program that uses the while loop and/or for loop
  • Create a program that reads/updates ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required