How can I make the parent constructor run before the child's constructor? ( Code: )
class database{
public function __construct(){
// Connect to database
}
}
class child extends database{
public function __construct(){
// Do something
}
}
I want it to connect to the database and then run the child's constructor, is that possible?