I have a class, and it has some static, some not static methods. It has a static property. I am trying to access this property inside all of its methods, I cannot understand the correct syntax.
What I have:
class myClass { static public $mode = 'write'; static public function getMode() { return myClass::$mode; } public function getThisMode() { return $this->mode; } }
Can someone tell me the actual syntax for this?
source share