-1
I need to wear one function
inside of another function
...
function formata_data( $datacad ){
$datacad = explode(' ', $data);
$datacad = $data[0];
$datacad = explode("-", $data);
$datacad = $data[2]."-".$data[1]."-".$data[0];
return $datacad;
}
Now I have a function to list users who need to return the data including the data de cadastro
and format it with the created function.
function usuarios(){
// listando usuarios
$datacadastro = ("Y-m-d H:i:s");
$datacadastro = ; //usar a função formata_data para formatar o retorno da data no banco
}
Please comment the negative so that I re-edit without changing the objective but correcting the question. Sincerely
– Marcos Vinicius