<?php class Foo { const BAR = 'bar'; var $other = 'test'; } function getFoo() { return new Foo(); } // var_dump(getFoo()::BAR); var_dump((getFoo())->BAR); var_dump((getFoo())->other);
You have javascript disabled. You will not be able to edit any code.