title: Extracting a part of a string in php
body: <p>I have a specific need to strip characters from a PHP input.</p>
  
  <p>For example, we have a version number and I only need the last part of it.</p>
  
  <p>Given <code>14.1.2.123</code> I only need <code>123</code><br>
  Given <code>14.3.21</code> I only need the <code>21</code></p>
  
  <p>Is there a way that I can get just those numbers in PHP?</p>