Advertisement
Guest User

Untitled

a guest
Jan 2nd, 2012
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.24 KB | None | 0 0
  1. class Foo
  2. {
  3.     public static $my_static = 'foo';
  4.  
  5.     public function staticValue() {
  6.         return self::$my_static;
  7.     }
  8. }
  9.  
  10. class Bar extends Foo
  11. {
  12.     public function fooStatic() {
  13.         return parent::$my_static;
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement