How can a fixed subject be added as a string in the mail function in PHP?

When using the mail function in PHP, you can add a fixed subject by including it as a string in the headers parameter of the function. The subject should be preceded by "Subject:" followed by the desired subject line. This allows you to set a specific subject for all emails sent using the mail function.

$to = "recipient@example.com";
$subject = "Subject: Your Fixed Subject Here";
$message = "This is a test email.";
$headers = "From: sender@example.com\r\n";
$headers .= "Content-Type: text/plain; charset=ISO-8859-1\r\n";
$headers .= $subject;

mail($to, $subject, $message, $headers);