func_get_args
Opis
array func_get_args ( void )Gets an array of the function's argument list.
This function may be used in conjunction with func_get_arg() and func_num_args() to allow user-defined functions to accept variable-length argument lists.
Zwracane wartości
Returns an array in which each element is a copy of the corresponding member of the current user-defined function's argument list.
Przykłady
Notatki
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.