title: PHP - Transform String to Float
body: <p>I need to transform a String to a Float.</p>
  
  <p>I will receive Strings like this:</p>
  
  <pre><code>$string  = "1.70 m";
  $string2 = "2.445 m";
  </code></pre>
  
  <p>How can I easly transform this strings to:</p>
  
  <pre><code>$float1 = 1.70;
  $float2 = 2.445;
  </code></pre>
  
  <p>Can someone give me some clues?</p>
  
  <p>Best Regards, </p>