phone() public static méthode

Checks phone number for Russia
public static phone ( string $check ) : boolean
$check string The value to check.
Résultat boolean Success.
Exemple #1
0
 /**
  * test phone method of RuValidation
  *
  * @return void
  */
 public function testPhone()
 {
     $this->assertTrue(RuValidation::phone('+7 (342) 1234567'));
     $this->assertTrue(RuValidation::phone('+7 (41144) 1234'));
 }