Skip to Content
PHP and MySQL® Web Development, Fifth Edition
book

PHP and MySQL® Web Development, Fifth Edition

by Luke Welling, Laura Thomson
September 2016
Intermediate to advanced
688 pages
19h 38m
English
Addison-Wesley Professional
Content preview from PHP and MySQL® Web Development, Fifth Edition

7. Error and Exception Handling

In this chapter, we explain the concept of exception handling and the way it is implemented in PHP. Exceptions provide a unified mechanism for handling errors in an extensible, maintainable, and object-oriented way.

Key topics covered in this chapter include

Image Exception handling concepts

Image Exception control structures: try...throw...catch

Image The Exception class

User-defined exceptions

Exceptions in Bob’s Auto Parts

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

PHP and MySQL Web Development, Third Edition

PHP and MySQL Web Development, Third Edition

Luke Welling, Laura Thomson
Learning PHP 5

Learning PHP 5

David Sklar

Publisher Resources

ISBN: 9780133038644Purchase book