开发者

PHP, Extract function call name with regex

$textvar = "Text(foo): " . func1("foo (bar)") . func2 ($some_arg);

What regex can I use to extract the above function names to verify the existanc开发者_Go百科e of these functions?


How about this?

<? if(function_exists($function_name)) {
    //do something; 
}
?>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜