|
PHP5中文手册
func_get_arg(PHP 4, PHP 5) func_get_arg — Return an item from the argument list 说明
mixed func_get_arg
( int $arg_num
)
Gets the specified argument from a user-defined function's argument list. This function may be used in conjunction with func_get_args() and func_num_args() to allow user-defined functions to accept variable-length argument lists. 参数
返回值Returns the specified argument, or FALSE on error. 错误/异常Generates a warning if called from outside of a user-defined function, or if arg_num is greater than the number of arguments actually passed. 范例
Example#1 func_get_arg() example
<?php 注释
|