Answer & Solution
display_errors
directive in PHP controls whether errors are displayed directly on the web page when they occur during script execution. By toggling this directive, developers can choose whether to show error messages to end users or to log them to a file for internal debugging.