php pass a function as a parameter

72

function someFunc($a)
{
    echo $a;
}

function callFunc($name)
{
    $name('funky!');
}

callFunc('someFunc');

Comments

Submit
0 Comments