PHP has two parallel systems for problems: traditional errors (warnings, notices, fatal errors) and exceptions (object-based, catchable with try/catch). Modern PHP unifies much of this under a Throwable hierarchy, and good practice favors exceptions.
Traditional error levels
E_NOTICE → minor issues (e.g. using an undefined variable) — script continues
E_WARNING → non-fatal problems (e.g. include of a missing file) — continues
E_ERROR / Fatal → serious errors (e.g. calling an undefined function) — script HALTS
E_DEPRECATED → use of deprecated features
