This is the PHP version of the Try catch stack overflow. Use the try catch block used in tcso.pl. You can use it in your projects. Please don't forget to make improvements and submit a new pull request.
Uses perl TryCatch module. Remember to include it in your code by using
use TryCatch; statement.
Developed by: Gautam krishna R