πŸ“Š PHP
Q. What will be the output of the following PHP code ?
Code:
<?php
$number = 5;
while (++$number)
{   
    while ($number --> 0)
        print $number;
}
?>
  • (A) Error
  • (B) 5
  • (C) 543210
  • (D) 0
πŸ’¬ Discuss
βœ… Correct Answer: (C) 543210

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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