<?php class X { const FOO="foo"; public static function foo() { return static::FOO; } } class Y extends X { const FOO="bar"; } print_r(Y::foo()); echo Y::FOO; ?>
You have javascript disabled. You will not be able to edit any code.