Skip to content

Instantly share code, notes, and snippets.

@zgoniaiko
Created April 7, 2012 11:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zgoniaiko/2327633 to your computer and use it in GitHub Desktop.
Save zgoniaiko/2327633 to your computer and use it in GitHub Desktop.
<?php
class A {
public function test() {
$this->abc = 'test';
}
}
class B extends A {
public $abc;
}
$a = new A();
print_r($a);
$a->test();
print_r($a);
$b = new B();
print_r($b);
$b->test();
print_r($b);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment