title: Extract number from a string with some specific pattern front and back in php
body: <p>I know there are a lot of post out there, but I really cannot find any match.
  I have a string
  <code>&quot;com/i598816441262.htm?sourceType=item&amp;ttid=227200&quot;</code></p>
  <p>I would like to extract the numbers after 'i' and '.', which is 598816441262 in the example, I can target the whole thing, &quot;/i598816441262.&quot; but I just want the numbers, and don't wanna do it twice if I can do once.</p>
  <p>Please, anyone give me some advice!</p>