Different types of exceptions in PHP
There could be several types of exceptions in PHP. For example A can be divided by B, but what if B is equal to zero? It is an invalid operation to divide by zero, in this case an exception will be raised.
It is possible to catch exceptions of different types and perform different operations depending on the kind of exception that was raised.
Comments
Post a Comment