Hi,
I'd be very thankful for a clear explanation on this: http://stackoverflow.com/questions/35656898
May be it's just a word game and I don't understand it correctly, but documentation states one, though $object::$staticProperty works in all versions (tested on 3v4l).
Very best regards,
Kubis Pandian-Fowler
Hi,
I'd be very thankful for a clear explanation on this:
http://stackoverflow.com/questions/35656898May be it's just a word game and I don't understand it correctly, but
documentation states one, though $object::$staticProperty works in all
versions (tested on 3v4l).
$obj::$foo is a shortcut for $cl = get_class($obj); $cl::$foo;
The static property is stored at the level of the class. What the
documentation means is that you cannot access a static property using
$obj->foo; you have to use "::" .
Best,