Home / Programming MCQs / PHP MCQs / Question

J

Jitendra Singh • 7.47K 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
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.