9?$x-9:$x; } } return(($sum%10)==0); } $num = $_GET['number']; ?> Online Luhn algorithm test
is valid
is NOT valid
Number: