Pass a function by reference in PHP

前端 未结 9 1734
灰色年华
灰色年华 2020-12-29 03:17

Is it possible to pass functions by reference?

Something like this:

function call($func){
    $func();
}

function test(){
    echo \"hello world!\";         


        
9条回答
提交回复
热议问题