I have the following PHP excerpt code:

```
foreach($afb_replacements as $afb_to_replace => $afb_replacement) {
    $sender_subject     = str_replace($afb_to_replace, $afb_replacement, $sender_subject);
    $ar_subject         = str_replace($afb_to_replace, $afb_replacement, $ar_subject);

    $final_message      = str_replace($afb_to_replace, $afb_replacement, $final_message);
    $final_message_text = str_replace($afb_to_replace, $afb_replacement, $final_message_text);

    $ar_message         = str_replace($afb_to_replace, $afb_replacement, $ar_message);
    $ar_message_text    = str_replace($afb_to_replace, $afb_replacement, $ar_message_text);
}

```

All 6 variables are replaced in the same manner (same text to replace with the same replacement in all variables with $afb\_to\_replace and $afb\_replacement).

What I want to know is: 

How can this be written more effectively? Perhaps in one line of code. I am sure there is a better way, since this is redundant code but no other solution comes into my mind at the moment. Any ideas?

I am curios about your approach!