title: creating more than one string replace
body: <p>I'm trying to change multiple lines in a template.  I use vBulletin software.</p>
  
  <p>This is what I have:</p>
  
  <pre><code>$drcidl_inc = '&lt;!-- / CSS Stylesheet --&gt;';
  $drcidl_cr = '$vbphrase[powered_by_vbulletin]';
  $drcrb_hd = '&lt;textarea name=\"message\" id=\"{$editorid}_textarea\" rows=\"10\" cols=\"60\" style=\"width:100%; height:{$editor_height}px\" tabindex=\"1\" dir=\"$stylevar[textdirection]\"&gt;&lt;/textarea&gt;';
  $find = '&lt;textarea name=\"message\" id=\"{$editorid}_textarea\"';
  $replace = '&lt;textarea class=\"form-control comment-form-textarea\" name=\"message\" id=\"{$editorid}_textarea\"';
  if(strpos($vbulletin-&gt;templatecache['headinclude'],$drcidl_inc) !==false)$vbulletin-&gt;templatecache['headinclude'] = str_replace($drcidl_inc,fetch_template('drc_iiu_css').$drcidl_inc,$vbulletin-&gt;templatecache['headinclude']);
  else $vbulletin-&gt;templatecache['headinclude'] .= fetch_template('drc_iiu_css');
  $vbulletin-&gt;templatecache['showthread_quickreply'] = str_replace($find,$replace,$vbulletin-&gt;templatecache['showthread_quickreply']);
  $vbulletin-&gt;templatecache['showthread_quickreply'] = str_replace($drcrb_hd,$drcrb_hd.fetch_template('drc_iiu_below_txtarea'),$vbulletin-&gt;templatecache['showthread_quickreply']);
  $vbulletin-&gt;templatecache['footer'] = str_replace($drcidl_cr,$drcidl_cr.fetch_template('drc_iiu_js'),$vbulletin-&gt;templatecache['footer']);
  </code></pre>
  
  <p>This works but only the first showthread_quickreply str_replace is functioning.
    I'm not sure exactly how to phrase this question, but how can I use multiple str_replace's on one ...variable?</p>
  
  <p>This is the one I'm trying to merge:</p>
  
  <pre><code>$vbulletin-&gt;templatecache['showthread_quickreply'] = str_replace($find,$replace,$vbulletin-&gt;templatecache['showthread_quickreply']);
  $vbulletin-&gt;templatecache['showthread_quickreply'] = str_replace($drcrb_hd,$drcrb_hd.fetch_template('drc_iiu_below_txtarea'),$vbulletin-&gt;templatecache['showthread_quickreply']);
  </code></pre>
  
  <p>and I will need to add another one to it still too.</p>