A small confusion arose after reading OOP in php, that is, I understand such constructs
echo $this->property; echo $this->method(); But such things are not logically clear, please explain
echo $this->property->method(); If you need to clarify something in the question write
propertyis also an object, themethodwhich you call, the same is in other languages - BOPOHpublic function __construct() { $this->property = new Some_Class(); }public function __construct() { $this->property = new Some_Class(); }, and then somewhere in the classroom you can already$this->property->some_method()- BOPOH