芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/xmintal-back/vendor/fakerphp/faker/src/Faker/Provider/nb_NO/Person.php
format('dmy'); /** * @todo These number should be random based on birth year * * @see http://no.wikipedia.org/wiki/F%C3%B8dselsnummer */ $randomDigits = (string) static::numerify('##'); switch ($gender) { case static::GENDER_MALE: $genderDigit = static::randomElement([1, 3, 5, 7, 9]); break; case static::GENDER_FEMALE: $genderDigit = static::randomElement([0, 2, 4, 6, 8]); break; default: $genderDigit = (string) static::numerify('#'); } $digits = $datePart . $randomDigits . $genderDigit; /** * @todo Calculate modulo 11 of $digits * * @see http://no.wikipedia.org/wiki/F%C3%B8dselsnummer */ $checksum = (string) static::numerify('##'); return $digits . $checksum; } }