【发布时间】:2009-10-20 17:46:18
【问题描述】:
我相信对此有一个非常简单的解释。这有什么区别:
function barber($type){
echo "You wanted a $type haircut, no problem\n";
}
call_user_func('barber', "mushroom");
call_user_func('barber', "shave");
...还有这个(还有什么好处?):
function barber($type){
echo "You wanted a $type haircut, no problem\n";
}
barber('mushroom');
barber('shave');
【问题讨论】: