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