芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/joolsmen.com/chat/vendor/fzaninotto/faker/src/Faker/Calculator/Inn.php
2, 2 => 4, 3 => 10, 4 => 3, 5 => 5, 6 => 9, 7 => 4, 8 => 6, 9 => 8); $sum = 0; for ($i = 1; $i <= 9; $i++) { $sum += intval(substr($inn, $i-1, 1)) * $multipliers[$i]; } return strval(($sum % 11) % 10); } /** * Checks whether an INN has a valid checksum * * @param string $inn * @return boolean */ public static function isValid($inn) { return self::checksum(substr($inn, 0, -1)) === substr($inn, -1, 1); } }