personId() public static method

Checks a social security number for Denmark.
public static personId ( string $check ) : boolean
$check string The value to check.
return boolean Success
Beispiel #1
0
 /**
  * test the ssn method of DkValidation
  *
  * @return void
  */
 public function testSsn()
 {
     $this->assertTrue(DkValidation::personId('111111-3334'));
     $this->assertFalse(DkValidation::personId('111111-333'));
 }