Skip to content

Instantly share code, notes, and snippets.

@b3sam
Created November 28, 2012 18:09
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 b3sam/4162965 to your computer and use it in GitHub Desktop.
Save b3sam/4162965 to your computer and use it in GitHub Desktop.
<?php
class Super {
public static $foo;
}
class One extends Super {
public static $foo = 'One';
}
class Two extends Super {
public static $foo = 'Two';
}
$one = new One();
var_dump($one::$foo);
$two = new Two();
var_dump($one::$foo);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment