Sometimes it is useful to refer to functions and variables in base classes or to refer to functions in classes that have not yet any instances. The :: operator is being used for this.
(C) PHP Manual
class test
{
var $a=1;
function f()
{
return 2;
}
}
Ok, I can call f:
echo test::f();
But how can I get default value for $a?
Or it's possible only for base classes?