-
What will be the output of the following PHP code ?
<?php
$num = 2;
while ($num != 5)
{
print "Executed...";
$num++;
}
?>
-
- Executed...
- Executed...Executed...
- Executed...Executed...Executed...
- Executed...Executed...Executed...Executed...Executed...
- None of these
Correct Option: C
The check happens before the increment, thus it prints until i = 5.