How can PHP developers quickly adjust the php.ini settings to display startup errors?

To quickly adjust the php.ini settings to display startup errors, PHP developers can modify the error_reporting and display_errors directives in the php.ini file. By setting error_reporting to E_ALL and display_errors to On, developers can ensure that all errors, including startup errors, are displayed on the screen. Alternatively, developers can also use the ini_set function in their PHP script to override the php.ini settings temporarily.

// Set error reporting to display all errors
ini_set('error_reporting', E_ALL);

// Enable displaying errors on the screen
ini_set('display_errors', 1);