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

by majid
4 months ago
278 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  Prediction of Iran's electric power consumption

Leave a Reply

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