PHP – how to call a function that is part of an object where one part is a variable? – Php versions
I need to call an function that is part of an object. The following call works as one would expect: $someobject = getobject(); $result = $someobject->somefunction->value(); However, I need the "somefunction" component to be a variable. I have tried to…