Skip to content

Instantly share code, notes, and snippets.

@tbarbugli
Created July 14, 2016 13:03
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 tbarbugli/942edf9ed476e3aada9afc7d5e455b5c to your computer and use it in GitHub Desktop.
Save tbarbugli/942edf9ed476e3aada9afc7d5e455b5c to your computer and use it in GitHub Desktop.
<?php
class A {
public static function who() {
echo __CLASS__;
}
public static function test() {
self::who();
}
}
class B extends A {
public static function who() {
echo __CLASS__;
}
}
B::test();
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment