Checks an address code (Adresni kod) for Serbia.
public static addressCode ( string $check ) : boolean | ||
$check | string | The value to check. |
Résultat | boolean | Success. |
/** * test the address_code method of RsValidation * * @return void */ public function testAddressCode() { $this->assertTrue(RsValidation::addressCode('122407')); $this->assertFalse(RsValidation::addressCode('11090')); $this->assertFalse(RsValidation::addressCode('A11090')); }