A

Admin • 833K Points
Coach

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: 23
  • Filed under category PHP
  • Hashtags:

Explanation by: Admin

The while loop ends only when condition will false.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.