• 2022-06-15
    在下面的代码中,第2个test()输出结果为( )。<?phpfunction test(){static $n=5;$n++;echo $n;}$n=10;test();test();
    A: 6
    B: 7
    C: 11
    D: 12