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

Code:
<?php
$n = 0;
do
{
    print $n;
    $n++;
}
while ($n != 5);
?>
  • (A) 0
  • (B) 5
  • (C) 01234
  • (D) Error
πŸ’¬ Discuss
βœ… Correct Answer: (C) 01234

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
97436
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Jitendra Singh
Publisher
πŸ“ˆ
81%
Success Rate