title: Remove useless zero digits from decimals in PHP
body: <p>I'm trying to find a fast way to remove <code>zero decimals</code> from number values like this:</p>
  
  <pre><code>echo cleanNumber('125.00');
  // 125
  
  echo cleanNumber('966.70');
  // 966.7
  
  echo cleanNumber(844.011);
  // 844.011
  </code></pre>
  
  <p>Does exists some optimized way to do that?</p>