title: PHP extract ID from a string
body: <p>E.g: Lorem ipsum dolor sit amet,  [ID: 123] Suspendisse [blahsh 68] condimentu</p>
  
  <p>How would I get 123?</p>
  
  <p>I have the first part where I check the character position:</p>
  
  <pre><code>$pos = strrpos($l, "ID: ");
  if ($pos === false) {
      $id = 123;
  }
  </code></pre>