0
I want to call the function data_hora_atual()
in that session class:
class sessao {
function fazSessao($conexao){
}
}
class administracao {
function data_hora_atual($par,$conexao){
date_default_timezone_set('America/Sao_Paulo');
return array();
}
}
class sessao extends administration would not solve ?
– Otto
It would be better to learn the basics before venturing into OO. For example, you run the risk of your date becoming corrupted if you take the turn of the day (or the hour or minute, whatever) right at the time of construction.
– Bacco