Pass a function name as parameter in a function

php

Solution

function test($str, $func){
    return call_user_func($func,$str);
} 

Use it like this

$asd = test("ASD","strtolower");

Problem

I'm having a function like this: ``` function test($str,$func) { $func($str); //Something more here } ``` How can I pass a function name there? I want to do like `test("Hello",strtolower);` or `test("Bye",sometextprocessfunc);`

Original source