Skip to content

Instantly share code, notes, and snippets.

@MZAWeb
Created August 31, 2012 04:57
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 MZAWeb/3549198 to your computer and use it in GitHub Desktop.
Save MZAWeb/3549198 to your computer and use it in GitHub Desktop.
<?php
class A {
protected function nonstatic() {
echo "nonstaticA\n";
var_dump($this);
}
}
class B extends A {}
class C extends B {
function __construct() {
var_dump($this);
A::nonstatic();
var_dump($this);
}
}
$c = new C();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment