PHP Classes

bugs

Recommend this page to a friend!

      PESEL validator  >  All threads  >  bugs  >  (Un) Subscribe thread alerts  
Subject:bugs
Summary:ok
Messages:1
Author:ramka
Date:2024-07-05 18:40:52
 

  1. bugs   Reply   Report abuse  
Picture of ramka 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; }