Q. What will be the output of the following PHP code ?
Code:
<?php
$t = 0;
while($t < 5)
{
$t++;
print "Ajit ";
}
?>
β
Correct Answer: (D)
Ajit Ajit Ajit Ajit Ajit
Explanation: The while loop ends only when condition will false.