PrepAway - Latest Free Exam Questions & Answers

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?

PrepAway - Latest Free Exam Questions & Answers

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 PHP.

One Comment on “How do you allow the caller to submit a variable number of arguments to a function?


Leave a Reply

Your email address will not be published. Required fields are marked *