Multiple choice

__________ returns the number of arguments passed to the function.

  1. func_get_arg

  2. func_get_args

  3. func_num_args

  4. none of these

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

func_num_args() returns the total number of arguments passed to a user-defined function. Unlike func_get_arg() (which gets a specific argument by index) or func_get_args() (which returns the entire array of arguments), this function only returns the count.