Validation Iranian National Number (شناسه ملی) using PHP and JavaScript | Majid Jalilian Code

by majid
4 months ago
304 Views
Click to rate this post!
[Total: 2 Average: 4.5]

You may need to validate national numbers for a company working in Iran. There is an algorithm to make sure the number is correct and validate. Personally, I was inquisitive about a safe method to check if it is valid.

PHP Code: You can use the below function and if it returns true it means your number is valid. If it returns false it means that the number is fake or wrong.

Now, this code in JS:

Click to rate this post!
[Total: 2 Average: 4.5]
See also  Full Guide to Redirect Using .htaccess File

Leave a Reply

Your email address will not be published. Required fields are marked *