public static function isZip($value) { return (bool) preg_match('/^\\d{5}(?:-\\d{4})?$/', $value); }
/** * */ public function testIsZip2() { $input = '46544-4142'; $this->assertTrue(Inspekt::isZip($input)); }