Effective, and Non-Redundant PHP code
<p>I have the following PHP excerpt code:</p>

<pre><code>foreach($afb_replacements as $afb_to_replace =&gt; $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);
}
</code></pre>

<p>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).</p>

<p>What I want to know is: </p>

<p>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?</p>

<p>I am curios about your approach!</p>
