[PHP] modulo function

2013-03-17 Thread georg
Guess there should be one in PHP but cant find it (tnx for many earlier answers) Br georg

RE: [PHP] Modulo eleven function?

2002-10-16 Thread Jon Haworth
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 htt

[PHP] Modulo eleven function?

2002-10-16 Thread Børge Strand
Is anyone of you aware of a modulo eleven function that is used to calculate the checksum of a creditcard number? I have a pretty crude code listing from a book, but what I look for is a function that can append the checksum digit to a number. I have the spec for the algorithm behind the check

[PHP] MODULO + OK

2002-03-21 Thread Jérome Moisy
Oups, I find my mistak.   Thank you -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Modulo

2002-03-21 Thread Jérome Moisy
Hy,   I would like to know if I do a mistak : $i % 3 == ?   If $i is a multiple of 3 the result is 0, yes or no ?   If yes so what is wrong in this script   For ($i = $val; $i < ($val+9); $i++) {   For ($j = 1; $j < 10; $j++) {     If ($serie == Blue) {   If($i <= 18) {     If ($j