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