Thread: EAN 13
View Single Post
Join Date: Oct 2006
Posts: 8
Reputation: roh3x2n is an unknown quantity at this point 
Solved Threads: 1
roh3x2n roh3x2n is offline Offline
Newbie Poster

EAN 13

 
0
  #1
Aug 2nd, 2008
I started PHP last month.So I am new.

Is it possible to find the EAN 13 with PHP ?

Here is how to calculate the EAN-13


1. From the right to left, start with odd position, assign the odd/even position to each digit.
2. Sum all digits in odd position and multiply the result by 3.
3. Sum all digits in even position.
4. Sum the results of step 3 and step 4.
5. divide the result of step 4 by 10. The check digit is the number which adds the remainder to 10.
Thanks in advance.
Reply With Quote