Re: [PHP] Luhn (modulo 10) check digit calculator

2010-01-05 Thread Richard Quadling
2010/1/5 Richard Quadling : > 2010/1/5 Angus Mann : >> Hi all. Perhaps a lazy request, but does anybody have some cut-n-paste code >> to calculate a Luhn check-digit? >> >> It's a check-digit often added to the end of things like credit card or >> account numbers to make detecting typo's a bit ea

Re: [PHP] Luhn (modulo 10) check digit calculator

2010-01-05 Thread Richard Quadling
2010/1/5 Angus Mann : > Hi all. Perhaps a lazy request, but does anybody have some cut-n-paste code > to calculate a Luhn check-digit? > > It's a check-digit often added to the end of things like credit card or > account numbers to make detecting typo's a bit easier. > > I found lots of code to v

Re: [PHP] Luhn (modulo 10) check digit calculator

2010-01-05 Thread Per Jessen
Angus Mann wrote: > Hi all. Perhaps a lazy request, but does anybody have some cut-n-paste > code to calculate a Luhn check-digit? > http://de.wikipedia.org/wiki/Luhn-Algorithmus (several examples, including one in PHP). /Per -- Per Jessen, Zürich (0.0°C) -- PHP General Mailing List (http

[PHP] Luhn (modulo 10) check digit calculator

2010-01-05 Thread Angus Mann
Hi all. Perhaps a lazy request, but does anybody have some cut-n-paste code to calculate a Luhn check-digit? It's a check-digit often added to the end of things like credit card or account numbers to make detecting typo's a bit easier. I found lots of code to validate a number once the check-di