What class of exceptions to use to intercept fatal errors, for example, when trying to output a nonexistent variable? There is a general idea, but I would like to see a specific example.
- The absence of a variable is not a fatal error, but merely a warning. But the essence is clear, in the 7th version of php, the exception mechanism has changed a little. They added, in particular, interpretation errors. This can now also be intercepted. It is done as standard via try catch - ArchDemon pm
|