示例#1
0
 public static function IsCheckDigitValid($digits)
 {
     return Damm::taq($digits) == 0;
 }
示例#2
0
 public function testtaq()
 {
     $this->assertEquals('7', Damm::taq('25248532'));
     $this->assertEquals('6', Damm::taq('12345678'));
     $this->assertEquals('9', Damm::taq('3257'));
 }