How can .htaccess be used to deny access to specific file extensions in PHP?

To deny access to specific file extensions in PHP using .htaccess, you can use the "FilesMatch" directive along with regular expressions to match the file extensions you want to deny access to. By adding this rule to your .htaccess file, you can prevent users from accessing files with those specific extensions. ```apache <FilesMatch "\.(php|html)$"> Order allow,deny Deny from all </FilesMatch> ```