<?php class Test { const OMG = 10; public function get($what) { return self::$what; } } $test = new Test(); var_dump($test->get("OMG")); var_dump($test::OMG);
You have javascript disabled. You will not be able to edit any code.