mirror of
https://github.com/Respect/Validation.git
synced 2024-05-17 21:56:40 +02:00
543b97309a
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
939 B
939 B
SubdivisionCode
SubdivisionCode(string $countryCode)
Validates subdivision country codes according to ISO 3166-2.
The $countryCode
must be a country in ISO 3166-1 alpha-2 format.
v::subdivisionCode('BR')->validate('SP'); // true
v::subdivisionCode('US')->validate('CA'); // true
This rules uses data from iso-codes.
Categorization
- ISO codes
- Localization
Changelog
Version | Description |
---|---|
1.0.0 | Created |
See also: