芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/www/vendor/fakerphp/faker/src/Faker/Calculator/TCNo.php
$digit) { if ($index % 2 == 0) { $evenSum += $digit; } else { $oddSum += $digit; } } $tenthDigit = (7 * $evenSum - $oddSum) % 10; $eleventhDigit = ($evenSum + $oddSum + $tenthDigit) % 10; return $tenthDigit . $eleventhDigit; } /** * Checks whether a TCNo has a valid checksum * * @param string $tcNo * @return bool */ public static function isValid($tcNo) { return self::checksum(substr($tcNo, 0, -2)) === substr($tcNo, -2, 2); } }