postal() public static method

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