Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.
The second method is better if you're worried about making user-friendly error handling and custom error handlers. The first method is better in terms of less code to manage, and is probably going to run faster because it's part of a precompiled built-in library.