function foo($xiao,$zhong,$da)
{
$numargs = func_num_args();
echo "數組中的參數個數是: $numargs<br />n";
if ($numargs >= 2){
echo "數組中第二參數的值是: ". func_get_arg(1) . "<br />n";
}
$arg_list = func_get_args();
for ($i = 0; $i < $numargs; $i++){
echo "數組中下標 $i 的值是: " . $arg_list[$i] . "<br />n";
}
}