How can the AddType directive be utilized to handle different PHP file extensions in Apache configuration?

The AddType directive in Apache configuration can be utilized to handle different PHP file extensions by specifying the MIME type for each extension. This allows Apache to correctly interpret and process PHP files with various extensions, ensuring they are executed as PHP scripts. AddType application/x-httpd-php .php AddType application/x-httpd-php .php3 AddType application/x-httpd-php .php4 AddType application/x-httpd-php .php5