phone() public static method

Checks a phone number.
public static phone ( string $check ) : boolean
$check string The value to check.
return boolean Success.
Beispiel #1
0
 /**
  * test the phone method of DkValidation
  *
  * @return void
  */
 public function testPhone()
 {
     $this->assertTrue(DkValidation::phone('88888888'));
     $this->assertFalse(DkValidation::phone('7777777'));
     $this->assertFalse(DkValidation::phone('999999999'));
 }