postal() public static method

Checks a postal code for Indonesia.
public static postal ( string $check ) : boolean
$check string The value to check.
return boolean Success.
Beispiel #1
0
 /**
  * Test the postal method of IdValidation
  *
  * @return void
  */
 public function testPostal()
 {
     $this->assertTrue(IdValidation::postal('15000'));
     $this->assertFalse(IdValidation::postal('00091'));
 }