Validate_FI::creditCard()

Validate_FI::creditCard() -- Validate credit card number

Synopsis

require_once 'Validate/FI.php';

bool Validate_FI::creditCard (string $number)

Description

Validate credit card number.

This method checks the credit card number according to Luhn algorithm. This method doesn't guarantee that the card is legitimate.

Paramètres

chaîne de caractères $number

credit card number to be validated (spaces and dashes tolerated)

Valeur retournée

booléen - true if credit card number is valid, false otherwise

Exemple