What will be the output of the following PHP code? [code] <?php $i = 0 do { $i++; } while ($i < 3); print $i; ?> [/code]

Nam Phong

New member
What will be the output of the following PHP code?
Code:
<?php
$i = 0
do
{
    $i++;
}
while ($i < 3);
print $i;
?>
A. 2
B. 3
C. 0
D. 1
 

Tìm kiếm

Back
Top