EAN Class
This class provides EAN validation and checksumming functionality.
category |
VuFind |
---|---|
package |
Code |
author |
Demian Katz demian.katz@villanova.edu |
license |
http://opensource.org/licenses/gpl-2.0.php GNU General Public License |
link |
Main Page |
getEAN13CheckDigit(string $ean) : string
string
The first 12 digits of an EAN.
string
The check digit.
isValidEAN13(string $ean) : boolean
string
The EAN to test.
boolean
normalizeEAN(string $raw) : string
These characters may be separated by any number of '.', '-', '_' and whitespace characters; the separation characters are removed. A lower x is converted to an upper X.
string
EAN to clean up.
string
Normalized EAN.