mirror of
https://github.com/Respect/Validation.git
synced 2024-06-29 10:40:24 +02:00
384 B
384 B
Cpf
v::cpf()
Validates a Brazillian CPF number.
v::cpf()->validate('44455566820'); //true
It ignores any non-digit char:
v::cpf()->validate('444.555.668-20'); //true
If you need to validate digits only, add ->digit()
to
the chain:
v::digit()->cpf()->validate('44455566820'); //true
See also: