<?php class Foo { function fun() { echo "fooo"; } } $parts = ['Foo', 'fun']; $controller = array_shift($parts); $method = array_shift($parts); (new $controller)->$method();
You have javascript disabled. You will not be able to edit any code.