title: How to store found numbers inside a string into an array in PHP
body: <p>Given a string:</p>
  
  <pre><code>$string = "Hello, 1992 world! Today's 2016! That's 24 years!";
  </code></pre>
  
  <p>How can I parse the string to return an array containing all the numbers inside?</p>
  
  <p>Expected result:</p>
  
  <pre><code>{1992,2016,24}
  </code></pre>