postal() 공개 정적인 메소드

Checks a postal code for Switzerland & Liechtenstein
public static postal ( string $check ) : boolean
$check string The value to check.
리턴 boolean Success.
예제 #1
0
 /**
  * test the postal method of ChValidation
  *
  * @return void
  */
 public function testPostal()
 {
     $this->assertTrue(ChValidation::postal('5112'));
     $this->assertFalse(ChValidation::postal('05112'));
 }