RE: [PHP] Modulo eleven function?
| From: | Jon Haworth | Date: | Wed, 16 Oct 2002 16:04:49 +0000 |
| Subject: | RE: [PHP] Modulo eleven function? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-120215@lists.php.net to get a copy of this message | ||
Hi Børge,
> Is anyone of you aware of a modulo eleven function
> that is used to calculate the checksum of a creditcard
> number?
I'm aware of the mod-10 algorithm (also known as the "Luhn algorithm") - is
that what you were after?
There's a class that does this, amongst other things, at
http://www.zend.com/codex.php?id=31&single=1
but I haven't used it myself.
Cheers
Jon