次のコードで「警告: func_get_arg(): Argument 1 not passed to function in /t.php(6) : assert code on line 1」が生成されるのはなぜですか?
function func($param0/*, ...*/)
{
assert('is_string(func_get_arg(0))'); // ok
assert('is_string(func_get_arg(1))'); // error
}
func("param0", "param1");
コードパッド: http://codepad.org/5G9kMWKJ