postal() public static method

Checks a postal code for Iran.
public static postal ( string $check ) : boolean
$check string The value to check.
return boolean Success.
Beispiel #1
0
 /**
  * test the postal method of IrValidation
  *
  * @return void
  */
 public function testPostal()
 {
     $this->assertTrue(IrValidation::postal('1234567890'));
     $this->assertFalse(IrValidation::postal('teststring'));
     $this->assertFalse(IrValidation::postal('123456789'));
 }