I would like to put masks in different fields, all via php, for example:
cnpj - "##. ###. ### / #### - ##"
cpf - "###. ###. ### - ##"
cep - "##### - ###"
phone - "(##) #### - ####"
date - "## / ## / ####"
I do not want to use jquery, nor masks in javascript, I would like to do it in php itself, because I want to use these masks to format data coming from the database.