Vin-Diesel
Новичок
PHP:
class child {
var $mysql = null;
function __construct() {
#1 # какой-то код присваивающий $this->mysql ссылку на root->mysql
}
}
class root {
var $mysql = null;
public function log() {
$mysql = new mysqli();
$this->child = new child();
var_dump($this->child->mysql);
}
}