personId() публичный статический Метод

Checks a social security number for The United States
public static personId ( string $check ) : boolean
$check string The value to check.
Результат boolean Success
Пример #1
0
 /**
  * test the ssn method of UsValidation
  *
  * @return void
  */
 public function testSsn()
 {
     $this->assertFalse(UsValidation::personId('11-33-4333'));
     $this->assertFalse(UsValidation::personId('113-3-4333'));
     $this->assertFalse(UsValidation::personId('111-33-333'));
     $this->assertTrue(UsValidation::personId('111-33-4333'));
 }