I need to pass a function as a parameter to another function and then call the passed function from within the function...This is probably easier for me to explain in code..
function foo($function) { $function(" World"); } function bar($params) { echo "Hello".$params; } $variable = 'bar'; foo($variable);
Additionally, you can do it this way. See variable functions.