title: PHP's preg_match() returns the position of the last match
body: <p>With</p>
  <pre><code>preg_match($pattern, $subject, $matches, PREG_OFFSET_CAPTURE);
  </code></pre>
  <p>is it possible to search a string in reverse? I.e., return the position of the last occurrence of the pattern in the subject similar to <code>strripos</code>.</p>
  <p>Or do I have to return the position of all matches with <code>preg_match_all</code> and use the last element of <code>$matches</code>?</p>