mirror of
https://github.com/Respect/Validation.git
synced 2024-05-29 03:42:25 +02:00
10df3211f5
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
30 lines
428 B
Markdown
30 lines
428 B
Markdown
# Luhn
|
|
|
|
- `Luhn()`
|
|
|
|
Validate whether a given input is a [Luhn][] number.
|
|
|
|
```php
|
|
v::luhn()->validate('2222400041240011'); // true
|
|
v::luhn()->validate('respect!'); // false
|
|
```
|
|
|
|
## Categorization
|
|
|
|
- Identifications
|
|
|
|
## Changelog
|
|
|
|
Version | Description
|
|
--------|-------------
|
|
2.0.0 | Created
|
|
|
|
***
|
|
See also:
|
|
|
|
- [CreditCard](CreditCard.md)
|
|
- [Imei](Imei.md)
|
|
- [Isbn](Isbn.md)
|
|
|
|
[Luhn]: https://en.wikipedia.org/wiki/Luhn_algorithm
|