How to Validate a South African ID Number With PHP

Hi nice website

Line 102 should be, $verify_check_digit = (10 – (int)$last_digit) % 10;

Hey Ruan. Thanks for the suggested correction. I've updated the code in the post.

Leave a Comment

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

© Copyright 2020 BluSilva (Pty) Ltd. All rights reserved. Privacy & Cookies