se añade funcion generacion digito verificador

parent 851501b6
......@@ -109,4 +109,11 @@ class UsuarioMcafee extends BaseUsuarioMcafee
return true;
}
}
public function getDv(){
$s=1;
for($m=0;$r!=0;$r/=10)
$s=($s+$r%10*(9-$m++%6))%11;
return chr($s?$s+47:75);
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment