Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Zend Exam 200-710 Topic 9 Question 61 Discussion

Actual exam question for Zend's 200-710 exam
Question #: 61
Topic #: 9
[All 200-710 Questions]

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

Show Suggested Answer Hide Answer
Suggested Answer: D

Contribute your Thoughts:

Kip
18 days ago
Hmm, I'm torn between B and D. Get_variable_args() sounds interesting, but func_get_args() is the classic way to go. Decisions, decisions...
upvoted 0 times
...
Ronnie
30 days ago
E? What do you mean, 'not possible'? PHP is a powerful language, of course we can handle variable arguments! This question is a joke.
upvoted 0 times
Josefa
1 days ago
B) Using a prototype like function test() and the function func_get_args() inside the function body.
upvoted 0 times
...
Diane
8 days ago
A) Using a prototype like function test(... $parameters).
upvoted 0 times
...
...
Isadora
1 months ago
I'm going with C. That array syntax looks like it could do the trick. Although I'm a bit unsure about the square brackets there.
upvoted 0 times
Nettie
8 days ago
User 1: I think A is the way to go. Using ... $parameters seems like the right approach.
upvoted 0 times
...
...
Tanja
1 months ago
Option B looks like the correct answer, using func_get_args() to handle a variable number of arguments. Simple and straightforward.
upvoted 0 times
...
Lillian
2 months ago
I'm not sure, but I think option A) Using a prototype like function test(... $parameters) could also work to allow variable number of arguments.
upvoted 0 times
...
Rikki
2 months ago
I agree with Keshia, option B makes sense because func_get_args() can be used to get all the passed arguments in an array.
upvoted 0 times
...
Keshia
2 months ago
I think the answer is B) Using a prototype like function test() and the function func_get_args() inside the function body.
upvoted 0 times
...

Save Cancel