PrepAway - Latest Free Exam Questions & Answers

What will be the output value of the following code?

What will be the output value of the following code?
<code>
$array = array(1,2,3);
while (list(,$v) = each($array));
var_dump(current($array));
</code>

PrepAway - Latest Free Exam Questions & Answers

A.
bool(false)

B.
int(3)

C.
int(1)

D.
NULL

E.
Array

One Comment on “What will be the output value of the following code?


Leave a Reply

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