personId() public static method

Checks Unique Master Citizen Numbers (JMBG) for Serbia.
public static personId ( string $check ) : boolean
$check string The value to check.
return boolean Success.
Example #1
0
 /**
  * test the jmbg method of RsValidation
  *
  * @return void
  */
 public function testPersonId()
 {
     $this->assertTrue(RsValidation::personId('1707017170007'));
     $this->assertFalse(RsValidation::personId('1707017170008'));
     $this->assertFalse(RsValidation::personId('170701717000'));
     $this->assertFalse(RsValidation::personId('A707017170007'));
 }