Validate_ptBR
[ class tree: Validate_ptBR ] [ index: Validate_ptBR ] [ all elements ]

Class: Validate_ptBR

Source Location: /Validate_ptBR-0.5.1/Validate/ptBR.php

Class Overview


Data validation class for Brazil


Author(s):

Version:

  • Release: @package_version@

Copyright:

  • 1997-2005 Silvano Girardi Jr.

Methods


Inherited Variables

Inherited Methods


Class Details

[line 45]
Data validation class for Brazil

This class provides methods to validate:



[ Top ]


Method Detail

cnpj   [line 136]

bool cnpj( string $cnpj)

  • Return: true if $cnpj is ok, false otherwise

Parameters:

string   $cnpj   —  CNPJ to validate

[ Top ]

cpf   [line 67]

bool cpf( string $cpf)

  • Return: true if $cpf is ok, false otherwise

Parameters:

string   $cpf   —  CPF to validate

[ Top ]

postalCode   [line 56]

bool postalCode( string $postalCode, [bool $strong = false])

  • Return: true if $cep is ok, false otherwise

Parameters:

string   $postalCode   —  pt_BR CEP/postalCode to validate
bool   $strong   —  optional; strong checks (e.g. against a list of postcodes) (not implanted)

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:10:32 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.