I need to be able to call a function, but the function name is stored in a variable, is this possible? e.g:
function foo () { //code here } function bar () {
My favorite version is the inline version:
${"variableName"} = 12; $className->{"propertyName"}; $className->{"methodName"}(); StaticClass::${"propertyName"}; StaticClass::{"methodName"}();
You can place variables or expressions inside the brackets too!