phone() public static method

Checks a phone number for Italy.
public static phone ( string $check ) : boolean
$check string The value to check.
return boolean Success.
Example #1
0
 /**
  * test the phone method of ItValidation
  *
  * @return void
  */
 public function testPhone()
 {
     $this->assertTrue(ItValidation::phone('347/1233456'));
     $this->assertFalse(ItValidation::phone('02+343536'));
 }