πŸ“Š PHP
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
πŸ’¬ Discuss
βœ… Correct Answer: (D) Ajit Ajit Ajit Ajit Ajit

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

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

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
187
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Jitendra Singh
Publisher
πŸ“ˆ
96%
Success Rate