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

Class: Validate_ptBR

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

Class Overview


Data validation class for Brazil


Author(s):

Version:

  • Release: @package_version@

Copyright:

  • 2005 The PHP Group

Methods


Inherited Variables

Inherited Methods


Class Details

[line 40]
Data validation class for Brazil

This class provides methods to validate:



[ Top ]


Method Detail

cnpj   [line 131]

bool cnpj( string $cnpj)

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

Parameters:

string   $cnpj   —  CNPJ to validate

[ Top ]

cpf   [line 62]

bool cpf( string $cpf)

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

Parameters:

string   $cpf   —  CPF to validate

[ Top ]

postalCode   [line 51]

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:20:56 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.