Better error handling in core PHP functions using Safe PHP
August 13, 2019 — Some of the PHP’s core functions are designed in such a way that they do not handle exceptions in a better way. Instead, they just return false
if there’s any error. This makes developers to handle those error themselves. Take the example below.