?
What will be the output of the following PHP code ?
What will be the output of the following PHP code ?
<?php
$i = 0
do
{
$i++;
}
while ($i < 3);
print $i;
?>
<?php
$i = 0
do
{
$i++;
}
while ($i < 3);
print $i;
?>
Answer & Solution
Correct Answer:
Option
B
The increment happens and then the check happens.
Join the Discussion
Login to post a comment or share your explanation.
Login