ramka - 2024-07-05 18:40:52
My php is not correct take first symbol with
$p[0]
and i need replaced it with
substr($p,0,1)
Also it was missing contition "if this last digit is 0, then the checksum is 0." https://en.wikipedia.org/wiki/PESEL
And i need to added
if ( $crc == 10 ) { $crc = 0; }