我需要能够调用一个函数,但函数名存储在一个变量中,这可能吗?例如:
function foo () { //code here } function bar () { //code here } $functionName = "foo"; // i need to call the function based on what is $functionName
任何帮助都会很棒.
谢谢!
php dynamic-function
dynamic-function ×1
php ×1