Zend Certified PHP Engineer 200-550 Question # 51 Topic 6 Discussion

Zend Certified PHP Engineer 200-550 Question # 51 Topic 6 Discussion

200-550 Exam Topic 6 Question 51 Discussion:
Question #: 51
Topic #: 6

What will the $array array contain at the end of this script?

function modifyArray (&$array)

{

foreach ($array as &$value)

{

$value = $value + 1;

}

$value = $value + 2;

}

$array = array (1, 2, 3);

modifyArray($array);


A.

2, 3, 4


B.

2, 3, 6


C.

4, 5, 6


D.

1, 2, 3


Get Premium 200-550 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.