RE: [PHP] Verification number
| From: | Bastien Koert | Date: | Thu, 24 Jan 2008 19:08:25 +0000 |
| Subject: | RE: [PHP] Verification number | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-268026@lists.php.net to get a copy of this message | ||
google mod10 checksum
bastien
> Date: Thu, 24 Jan 2008 12:37:20 +0100> From: emil@knmedical.se> To:
> php-general@lists.php.net> Subject: [PHP] Verification number> > Hi> > Sorry if this
> is considered off topic. Please ignore the post in that case.> > My site uses ten digit
> numbers as ID:s for our products. I would like > the last digit to be a verification/check digit.
> I was just about to > just make some simple function that would add the other values together
> > into a one digit verification digit. But I thought maybe there are > better or worse ways of
> doing this, since some algorithms probably > produce a more even distribution of verification
> digits than others do. > I.e. it would be a shame if I later on notice that half of my ID:s get
> > 9 as verification.> > Any ideas?> > Regards Emil> > -- > PHP General
> Mailing List (http://www.php.net/)> To unsubscribe, visit:
> http://www.php.net/unsub.php>
_________________________________________________________________