I need to call a PHP standard function from a string
开发者_开发知识库Example:
$param = "parameter";
$functionname = "createimagefromjpg";
//call the function (with a parameter)
Anyone has an idea how I can do this?
It can't be done with call_user_func() because it is a standard function.
$functionname($param);
Correction, ok I thought this would work:
$$functionname($param);
but it does not.... the example with one dollar sign works for functions. Nice.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论