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.
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.
Notatka: Jako że działanie tej funcji zależy od aktualnego zasięgu, nie może ona być użyta jako parametr funkcji. Jeśli konieczne jest przekazanie tej wartości, należy przypisać wynik działania tej funkcji do zmiennej, a następnie, jako parametr, przekazać tą zmienną.
Notatka: This function returns a copy of the passed arguments only, and does not account for default (non-passed) arguments.
Poprzedni | Spis treści | Następny |
create_function | Początek rozdziału | func_get_args |