personId() 공개 정적인 메소드

Checks a country specific identification number.
public static personId ( string $check ) : boolean
$check string The value to check.
리턴 boolean Success.
예제 #1
0
 /**
  * test the personId method of EsValidation
  *
  * @return void
  */
 public function testPersonId()
 {
     $this->assertTrue(EsValidation::personId('32050031Z'));
     $this->assertTrue(EsValidation::personId('X2546874S'));
     $this->assertTrue(EsValidation::personId('K1254868A'));
     $this->assertFalse(EsValidation::personId('23232323'));
 }