Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 281 Bytes

CreditCard.md

File metadata and controls

15 lines (10 loc) · 281 Bytes

CreditCard

  • v::creditCard()

Validates a credit card number.

v::creditCard()->validate('5376 7473 9720 8720'); //true

It ignores any non-digit chars, so use ->digit() when appropriate.

v::digit()->creditCard()->validate('5376747397208720'); //true