<?php class A { const derp = 1; function test() { //return self::derp; return static::derp; } } class B extends A { const derp = 2; } $a = B::test(); var_dump($a);
You have javascript disabled. You will not be able to edit any code.