<?php
function barber($type)
{
echo "You wanted a $type haircut, no problem\n";
}
call_user_func(‘barber‘, "mushroom");
call_user_func(‘barber‘, "shave");
?>
以上例程会输出:
You wanted a mushroom haircut, no problem You wanted a shave haircut, no problem
时间: 2024-10-04 02:54:00