Archive for the ‘exception’ Category

A Crash Course of Changes to Exception Handling in PHP 7

Posted on: No Comments
Exception handling saves your code in the most unusual circumstances. PHP 7 has introduced two new classes that assist a developer in handling errors with ease, and that's what we'll look at in this post. Before the introduction of these classes in PHP...

More Tips for Defensive Programming in PHP

Posted on: No Comments
The general definition of defensive programming (as seen in Part 1, an overview piece on Defensive Programming in PHP) being used here is thus: Defensive programming, simply put, is programming with the intent to anticipate likely failure points. The ...