isInt() public static méthode

Returns true if value is a valid integer value, false otherwise.
public static isInt ( string | array $value ) : boolean
$value string | array
Résultat boolean
Exemple #1
0
 /**
  *
  */
 public function testIsInt4()
 {
     $input = 2147483647;
     $this->assertTrue(Inspekt::isInt($input));
 }