How to get static data member from php object instance? [closed]

E.g. via

<?php
class Foo {
    public function bar() {
        echo '-> '. self::$data . ' <-';
    }

    public static $data="FooData";
}

$foo = new Foo;
$foo->bar();

see also: http://php.net/language.oop5.late-static-bindings

Leave a Comment