postal() public static method

Checks a postal code for Belgium.
public static postal ( string $check ) : boolean
$check string The value to check.
return boolean Success.
Example #1
0
 /**
  * test the postal method of BeValidation
  *
  * @return void
  */
 public function testPostal()
 {
     $this->assertTrue(BeValidation::postal('1804'));
     $this->assertFalse(BeValidation::postal('01804'));
 }