Skip to content

joaopaulojpg/Criar-Mascaras-Php-POO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Classe de Mascára

Uso

// Caminho do arquivo include './mascara.php';

$mascara = new Mascara('12345678910', '###.###.###-##');

$mascara = $mascara->doMask(); /// Valor com a mascara aplicada

echo $mascara; /// tela 123.456.789-10