How can i make a multifunctional variable from a class? I have tried this, but i get the error Fatal error: Call to a member function doSomethingElse()
I have a class for example
class users { public_funtion getUser(){} public_funtion doSomethingElse(){} } I want to be able to call 2 functions in one call
$users = new Users() $user = $users->getUser()->doSomethingElse(); What is this called? and how do i get this?
return $this).