<?php class First { protected static $test = 'foo'; protected static $test2 = 'foo'; public function test() { var_dump(self::$test, static::$test2); } } class Second extends First { protected static $test = 'bar'; protected static $test2 = 'bar'; } $second = new Second; $second->test();
You have javascript disabled. You will not be able to edit any code.