Is it possible store a few functions in an array by reference or by anonymous function?
For example:
$array = [fun1, function(){ /*do something*/ }, fun3];
where fun1 and fun3 are defined as
function fun1(){/*do something*/}
Is it possible store a few functions in an array by reference or by anonymous function?
For example:
$array = [fun1, function(){ /*do something*/ }, fun3];
where fun1 and fun3 are defined as
function fun1(){/*do something*/}
برچسب:
نویسنده: استخدام کار