K I read an old thread dedicated to this but didnt find answer there so starting a new one just for myself 😃
At present Im using
class Object{
function Object(){
global $db;
........
}
function newFunction(){
global $db;
........
}
etc...
}
My question is if it is possible to allow each function use global $db without declaring it in each function or this->db=$db in constructor?