J

Jitendra Singh • 7.50K Points
Tutor III

Q. What will be the output of the following PHP code ?

Code:
<?php
$t = 0;
while($t < 5)
{
    $t++;
print "Ajit ";
}
?>
  • (A) Ajit
  • (B) Ajit Ajit
  • (C) Ajit Ajit Ajit
  • (D) Ajit Ajit Ajit Ajit Ajit
  • Correct Answer - Option(D)
  • Views: 142
  • Filed under category PHP

Explanation by: Jitendra Singh
The while loop ends only when condition will false.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics