Multiple choice

____________ returns an array comprising a function's argument list.

  1. func_get_arg

  2. func_get_args

  3. func_num_args

  4. none of these

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

func_get_args() returns an array containing all arguments passed to the current function. This is useful for variable-length argument lists. Related functions: func_num_args() returns count, func_get_arg(n) returns single argument at position n.