title: Get last whole number in a string
body: <p>I need to isolate the latest occurring integer in a string containing multiple integers.</p>
  <p>How can I get <code>23</code> instead of <code>1</code> for <code>$lastnum1</code>?</p>
  <pre><code>$text = &quot;1 out of 23&quot;;
  $lastnum1 = $this-&gt;getEval(eregi_replace(&quot;[^* out of]&quot;, '', $text));
  </code></pre>