respect-validation/docs/Cpf.md
Henrique Moody 66027b85a5 Documentation improvements
- Add a space after comments with `//`;
- Add missing "See also" sections in some files
2015-10-19 22:55:05 -02:00

387 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: