Chapter

Catching Exceptions

From ComputerScienceOne by Dr Chris Bourke

Concepts

  1. How do you throw exceptions in PHP?

    "Modern versions of PHP support error handling through the use of exceptions. PHP has several different predefined types of exceptions and also allows you to define your own exception types by creatin

  2. How do you catch exceptions in PHP?

    "To catch an exception in PHP you can use the standard try-catch control block. Optionally (and as of PHP version 5.5.0) you can use the finally block to clean up any resources or execute code regardl

Catching Exceptions | ComputerScienceOne | Bifalgorithm | Bifalgorithm