Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class a {
- public $x = 0;
- function foo() {
- $this->x = 1;
- }
- }
- class b extends a {
- public $x = 3;
- function bar() {
- a::foo();
- }
- }
- $b = new b();
- $b->bar();
- echo $b->x;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement