How do you allow the caller to submit a variable number of arguments to a function?

How do you allow the caller to submit a variable number of arguments to a function?
A . Using a prototype like function test( … $parameters).
B . Using a prototype like function test() and the function func_get_args() inside the function body.
C . Using a prototype like function test($parameters[]).
D . Using a prototype like function test() and the function get_variable_args() inside the function body.
E . This is not possible in PH

Answer: B

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments