-
What will be the output of the following PHP code ?
<?php
$k = 10;
while (--$k > 0)
{
$k++;
print $k;
print "Interview Mania";
}
?>
-
- Error
- nothing
- Interview Mania......infinite time
- 10Interview Mania.....infinite time
- None of these
Correct Option: D
k is decremented in the first while execution and then continuously incremented back.