title: check for integer or float values
body: <p>I have this</p>
  
  <pre><code>$number = 0.5
  
  if (is_float($number))
  {
    echo 'float';
  }
  else
  {
    echo 'not float';
  }
  </code></pre>
  
  <p>and it echos not float.
  what could be the reason
  thanks</p>