Czy istnieje takie coś w php ?
public function __deconstruct() { foreach($this->connections as $connection) { $connection->close(); } }
i jeszcze w opisie metody:
/** * Deconstruct the object * close all of the database connections */
public function __deconstruct() { foreach($this->connections as $connection) { $connection->close(); } }
/** * Deconstruct the object * close all of the database connections */