I have a string variable
$worker_name = "video_convert"
I want to write a function with the name like the following
function video_convert(){
}
How can I do this in PHP? I tried
function eval($worker_name){
}
or
eval($worker_name) = function(){
}
But, it seems like it is not the correct way to do it in PHP.