<?php class foo { function __construct () { $this->bar = 1; } function add() { $this->bar+=1; } } $one = $two = $three = new foo(); $one->add(); var_dump($one); var_dump($two);
You have javascript disabled. You will not be able to edit any code.