PHP's error reporting can help you discover the nature of errors in the code that you write. As you develop applications, having errors displayed in the browser is a useful way to receive immediate feedback, and this can speed up the development process.
On a production application, such behavior is a security risk. If an application in production displays errors, vital information about your application is revealed to the public.
You should disable display_errors in production.