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 7 Question 53 Discussion

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

What will be the result of the following operation?

array_combine(array("A","B","C"), array(1,2,3));

Show Suggested Answer Hide Answer
Suggested Answer: D

Contribute your Thoughts:

Fletcher
4 days ago
I was tempted to choose option D, but then I realized that the order of the keys and values would be reversed. Good catch on option C!
upvoted 0 times
...
Elbert
7 days ago
Option C looks like the correct answer. It creates an associative array with the keys from the first array and the values from the second array.
upvoted 0 times
...
Alberta
16 days ago
I'm not sure about this one. I think the answer might be A) array(\'A\',\'B\',\'C\',1,2,3) because it combines both arrays without associating keys with values.
upvoted 0 times
...
Alaine
19 days ago
I agree with Karima. The function array_combine combines the values of the second array with the keys of the first array.
upvoted 0 times
...
Karima
25 days ago
I think the answer is C) array(\'A\'=>1,\'B\'=>2,\'C\'=>3) because array_combine creates an array by using one array for keys and another for its values.
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