postal() public static method

Checks a postal code for Poland.
public static postal ( string $check ) : boolean
$check string Value to check
return boolean Success.
Example #1
0
 /**
  * test the postal method of PlValidation
  *
  * @return void
  */
 public function testPostal()
 {
     $this->assertTrue(PlValidation::postal('63-400'));
     $this->assertFalse(PlValidation::postal('63400'));
     $this->assertFalse(PlValidation::postal('634-00'));
 }