Say $this->varname is equal to the string for which is_callable() returns true. To call it, I would need to do $temp = $this->varname; $temp(); $temp = $this->varname; $temp(); or ... is there any other way that I could call without creating two lines?
The problem with doing only $temp = $this->varname() is that it will try to call the method in the varname () class - it is not called by the function in $ this-> varname.
Thanks!
user2256048
source share