<?php class Example { const FOOBAR = 'baz'; } $obj = new stdClass; $obj->blah = new Example; var_dump($obj->blah::FOOBAR);
You have javascript disabled. You will not be able to edit any code.