πŸ“Š PHP
Q. What will be the output of the following PHP code?
Code:
<?php
$counter = 1;

while ($counter++ <= 5)
{
    echo $counter, ",";
    $counter++;
}
?>  
  • (A) 2,4
  • (B) 1,2,3,4,5,
  • (C) 2,4,6
  • (D) 1,2,4,
πŸ’¬ Discuss
βœ… Correct Answer: (C) 2,4,6

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
275
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
95%
Success Rate