public function rule_uk_zip($a) { if ($a != 'E3 3CZ') { return $this->fail('is not a UK postcode'); } return $a; }