PrepAway - Latest Free Exam Questions & Answers

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

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);

PrepAway - Latest Free Exam Questions & Answers

A.
2, 3, 4

B.
2, 3, 6

C.
4, 5, 6

D.
1, 2, 3

2 Comments on “What will the $array array contain at the end of this script?


Leave a Reply

Your email address will not be published. Required fields are marked *