title: Replace last occurrence of a string in a string
body: <p>Anyone know of a very fast way to replace the last occurrence of a string with another string in a string?</p>
  <p>Note, <strong>the last occurrence of the string might not be the last characters in the string.</strong></p>
  <p>Example:</p>
  <pre><code>$search = 'The';
  $replace = 'A';
  $subject = 'The Quick Brown Fox Jumps Over The Lazy Dog';
  </code></pre>
  <p>Expected Output:</p>
  <pre><code>The Quick Brown Fox Jumps Over A Lazy Dog
  </code></pre>