What will be the output value of the following code?

Posted by: Pdfprep Category: 200-710 Tags: , ,

What will be the output value of the following code?

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

while (list(,$v) = each($array));

var_dump(current($array));
A . bool(false)
B . int(3)
C . int(1)
D . NULL
E . Array

Answer: A

Leave a Reply

Your email address will not be published.