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

by majid
1 month ago
96 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  Installing composer on CentOS 8.0/7.0, Ubuntu, Redhat and any Linux distribution

Leave a Reply

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