<?php class A { private $foo = 'foo'; public function doSomething($otherObject) { var_dump($otherObject->foo); } } $a1 = new A; $a2 = new A; $a1->doSomething($a2);
You have javascript disabled. You will not be able to edit any code.