postal() public static method

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