How can PHPMailer be configured to handle multiple file attachments from a form input?

To handle multiple file attachments from a form input using PHPMailer, you can iterate through the files array and add each file as an attachment using the `addAttachment()` method. This allows you to dynamically attach multiple files to the email being sent.

// Assume $files is an array of file paths from the form input
foreach($files as $file) {
    $mail->addAttachment($file);
}