Skip to content

Instantly share code, notes, and snippets.

@fivestar
Created July 2, 2012 14:37
Show Gist options
  • Save fivestar/3033553 to your computer and use it in GitHub Desktop.
Save fivestar/3033553 to your computer and use it in GitHub Desktop.
<?php
class Foo
{
static function hey()
{
self::say();
}
static function say()
{
echo 'foo';
}
}
class Bar extends Foo
{
static function say()
{
echo 'bar';
}
}
Bar::hey(); // foo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment