boolean alphaNumeric(
string
$check)
|
|
Check for Persian/Farsi characters and number an zero width non-joiner space.
Also accpets latin numbers preventing potential problem until PHP becomes fully unicode compatible.
Parameters:
boolean ssn(
string
$check)
|
|
Checks social security numbers for Iran called "kode melli".
kode melli's last digit from left is the check digit, here is the algorithm: A= last digit from left B= (first digit*10) + (2th digit*9) + ... (9th digit *2) C= B – (B/11)*11 if C==0 and A==0 OK if C==1 and A==1 OK if C>1 and A==(C-11) OK
Parameters: