拼接的变量可以作为php函数名

$a = "b";
$fun = "a".$a;
$fun();
function ab(){
    print_r("aaa");
}

猜你喜欢

转载自blog.csdn.net/dxmgood/article/details/78251396
今日推荐