respect-validation/docs/rules/Tld.md

33 lines
529 B
Markdown
Raw Normal View History

2015-01-30 09:40:06 +01:00
# Tld
- `Tld()`
2015-01-30 09:40:06 +01:00
Validates whether the input is a top-level domain.
2015-01-30 09:40:06 +01:00
```php
v::tld()->validate('com'); // true
v::tld()->validate('ly'); // true
v::tld()->validate('org'); // true
v::tld()->validate('COM'); // true
2015-01-30 09:40:06 +01:00
```
## Categorization
- Internet
## Changelog
Version | Description
--------|-------------
0.3.9 | Created
***
See also:
2015-01-30 09:40:06 +01:00
- [CountryCode](CountryCode.md)
2018-12-11 13:31:50 +01:00
- [Domain](Domain.md)
- [Ip](Ip.md)
- [MacAddress](MacAddress.md)
- [PublicDomainSuffix](PublicDomainSuffix.md)
- [SubdivisionCode](SubdivisionCode.md)