title: Extract floating point numbers from a delimited string in PHP
body: <p>I would like to convert a string of delimited dimension values into floating numbers.</p>
  <p>For example</p>
  <pre><code>152.15 x 12.34 x 11mm
  </code></pre>
  <p>into</p>
  <pre><code>152.15, 12.34 and 11
  </code></pre>
  <p>and store in an array such that:</p>
  <pre><code>$dim[0] = 152.15;
  $dim[1] = 12.34;
  $dim[2] = 11;
  </code></pre>
  <p>I would also need to handle scenarios where the delimiting text is different and the numbers may be followed by a unit expression like:</p>
  <pre><code>152.15x12.34x11 mm
  
  152.15mmx12.34mm x 11mm
  </code></pre>