If you've been developing applications for a while you must have heard of
Exceptions or at least
Errors. Two phenomenon that are common to all programming language and to which all programmers are used to. They sound negative. There are what programmers may not like to hear about. In fact, to many of us, it's a nightmare. This ideology has made them to become a dark-side of coding that most training resources don't talk much about.
But, for good programmers, this is some kind of Yin & Yang, you remember? This natural principle in which the good doesn't exist if the bad doesn't, and vice-versa. You can't have the good if you don't handle the bad very well.
In this post I would like to share with you what Exceptions are in PHP and how useful it's to handle them.