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.
This is not possible in PHP.

C.
Using a prototype like function test() and the function get_variable_args() inside the
function body.

D.
Using a prototype like function test() and the function func_get_args() inside the function
body.

E.
Using a prototype like function test($parameters[]).


Leave a Reply

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