PrepAway - Latest Free Exam Questions & Answers

What is the output of the following code? <code> 1 <?php 2 for ($i = 0; $i < 1.02; $i += 0.17) { 3

What is the output of the following code?
<code>
1 <?php
2 for ($i = 0; $i < 1.02; $i += 0.17) {
3 $a[$i] = $i;
4 }
5 echo count($a);
6 ?>
</code>

PrepAway - Latest Free Exam Questions & Answers

A.
0

B.
1

C.
2

D.
6

E.
7


Leave a Reply

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