postal() public static method

Checks a postal code (Poštanski broj) for Serbia.
public static postal ( string $check ) : boolean
$check string The value to check.
return boolean Success.
Beispiel #1
0
 /**
  * test the postal_number method of RsValidation
  *
  * @return void
  */
 public function testPostal()
 {
     $this->assertTrue(RsValidation::postal('11090'));
     $this->assertFalse(RsValidation::postal('111000'));
     $this->assertFalse(RsValidation::postal('A1100'));
 }