personId() public static method

Checks a social security number (NIP) for Poland.
public static personId ( string $check ) : boolean
$check string Value to check
return boolean Success.
Example #1
0
 /**
  * test the ssn method of PlValidation
  *
  * @return void
  */
 public function testSsn()
 {
     $this->assertTrue(PlValidation::personId('768-000-24-66'));
     $this->assertTrue(PlValidation::personId('768-00-02-466'));
     $this->assertTrue(PlValidation::personId('7680002466'));
     $this->assertFalse(PlValidation::personId('768-000-24-65'));
     $this->assertFalse(PlValidation::personId('769-000-24-66'));
     $this->assertFalse(PlValidation::personId('7680002566'));
 }