isPhone() public static method

This method requires that the value consist of only digits.
public static isPhone ( mixed $value, string $country = 'US' ) : boolean
$value mixed
$country string
return boolean
Example #1
0
 /**
  *
  */
 public function testIsPhone()
 {
     $input = '7655559090';
     $this->assertTrue(Inspekt::isPhone($input));
 }