Say $this->varname
is equal to a string for which is_callable()
returns true. To call it I'd have to do $temp = $this->varname; $temp();
or... is there another way I could call it without having to create two lines?
The problem with doing just $temp = $this->varname()
is that that'll try to call a method within the class called varname() - it won't call the function at $this->varname.
Thanks!