maskCreditCard.php
Table of Contents
Functions
- maskCreditCard() : int
- Replaces a value with a random, Luhn-valid credit-card number.
Functions
maskCreditCard()
Replaces a value with a random, Luhn-valid credit-card number.
maskCreditCard([mixed $value = null ]) : int
Implements the conventional creditCard masker: it returns a random 16-digit
number (as an integer) whose check digit satisfies the
Luhn algorithm. The
original value is never reflected in the output.
Parameters
- $value : mixed = null
-
The original value (ignored — replaced wholesale).
Tags
Return values
int —A Luhn-valid 16-digit number.