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
1 months 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
Oliva
14 days ago
User 2: Yeah, it's a classic choice.
upvoted 0 times
...
Malinda
15 days ago
User 1: I think func_get_args() is the way to go.
upvoted 0 times
...
...
Ronnie
2 months 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
Twana
15 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
16 days ago
B) Using a prototype like function test() and the function func_get_args() inside the function body.
upvoted 0 times
...
Diane
23 days ago
A) Using a prototype like function test(... $parameters).
upvoted 0 times
...
...
Isadora
2 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
Leonora
8 days ago
User 3: I agree with Leonora. B seems like a more reliable option for handling variable arguments.
upvoted 0 times
...
Eliseo
13 days ago
User 2: I'm not so sure about that. I'm leaning towards B, using func_get_args() inside the function body.
upvoted 0 times
...
Nettie
23 days ago
User 1: I think A is the way to go. Using ... $parameters seems like the right approach.
upvoted 0 times
...
...
Tanja
2 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
3 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
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77