I am developing a complex application in PHP. How to report errors and warning messages in my PHP applications?
What is the easiest way to enable error reporting in PHP based applications? I should be able to easily remove the error reporting code before moving my code on production environment.
Error reporting is very important while developing your applications. If your code reports the error correctly you can easily debug and fix your code.
You can easily turn on the error reporting to find what is happening in your code and which part is causing the issue. This way it is easy to fix your code.