How does this work:
$a = $this->A()->B();
In php? Can i get an example to understand this? Or any docs or sources to understand this. Which of the function will be called first and why?
And is method chaining possible only for methods in same class?