What is the output of the following code?

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

What is the output of the following code?

for ($i = 0; $i < 1.02; $i += 0.17) {

$a[$i] = $i;

}

echo count($a);
A . 0
B . 1
C . 2
D . 6
E . 7

Answer: B

Leave a Reply

Your email address will not be published.