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 1 Question 79 Discussion

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

What will be the result of the following operation?

$a = array_merge([1,2,3] + [4=>1,5,6]);

echo $a[2];

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Cherelle
5 days ago
I'm going with D) false. The array_merge function returns a new array, so $a[2] will not be defined, resulting in a false value.
upvoted 0 times
...
Daniel
8 days ago
The correct answer is C) 2. The + operator will merge the arrays, but it will preserve the keys from the second array, so the element at index 2 will be 2.
upvoted 0 times
...
Dannette
15 days ago
I think the answer is B) 3. The array_merge function will combine the two arrays, and the element at index 2 will be 3 from the first array.
upvoted 0 times
Shala
4 days ago
I think the answer is B) 3.
upvoted 0 times
...
...
Ciara
16 days ago
I'm not sure, but I think it might be a parse error.
upvoted 0 times
...
Leota
19 days ago
I believe it will be false.
upvoted 0 times
...
Wilda
24 days ago
I think the result will be 3.
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