respect-validation/docs/rules/Luhn.md

30 lines
428 B
Markdown
Raw Normal View History

2017-08-18 13:47:36 +02:00
# Luhn
- `Luhn()`
Validate whether a given input is a [Luhn][] number.
```php
v::luhn()->validate('2222400041240011'); // true
v::luhn()->validate('respect!'); // false
```
## Categorization
- Identifications
2017-08-18 13:47:36 +02:00
## Changelog
Version | Description
--------|-------------
2.0.0 | Created
***
See also:
- [CreditCard](CreditCard.md)
- [Imei](Imei.md)
2018-12-11 13:31:50 +01:00
- [Isbn](Isbn.md)
[Luhn]: https://en.wikipedia.org/wiki/Luhn_algorithm