Validate the syntax of a credit card number using PHP.