isFloat() public static method

Returns true if value is a valid float value, false otherwise.
public static isFloat ( string $value ) : boolean
$value string
return boolean
Beispiel #1
0
 /**
  * Generated from @assert ('10,244,578,109.234451') === FALSE.
  */
 public function testIsFloat3()
 {
     $locale = localeconv();
     $thousands_sep = $locale['thousands_sep'];
     $this->assertSame(false, Inspekt::isFloat("10{$thousands_sep}244{$thousands_sep}578{$thousands_sep}109.234451"));
 }