class variable functions

bessnt

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