Skip to content

Instantly share code, notes, and snippets.

@fasmide
Created September 8, 2014 18:38
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 fasmide/0826d56db99eee8cd4cb to your computer and use it in GitHub Desktop.
Save fasmide/0826d56db99eee8cd4cb to your computer and use it in GitHub Desktop.
<?php
class Q {
public function __construct() {
$this->hej();
}
}
class B extends Q {
public function hej() {
echo "hej ";
}
public static function Muh() {
echo "muh ";
}
}
class Abe {
public function __construct() {
B::Muh();
}
}
new B();
B::Muh();
new Abe();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment