How can PHP error handling in .htaccess be optimized for better error reporting?

When PHP errors occur, they are often not displayed to the user by default, making it difficult to troubleshoot. To optimize PHP error handling in .htaccess for better error reporting, you can set the `display_errors` directive to `On` and `error_reporting` to `E_ALL` to display all errors.

# Enable PHP error display in .htaccess
php_flag display_errors On
php_value error_reporting E_ALL