πŸ“Š PHP
Q. What will be the output of the following PHP code ?
Code:
<?php
$p = 0;
for(++$p; ++$p; ++$p)
{
    print $p;
    if ($p == 6) 
        break;
}
?>
  • (A) Error
  • (B) 2
  • (C) 24
  • (D) 246
πŸ’¬ Discuss
βœ… Correct Answer: (D) 246

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
104149
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Sikhar Chaudhary
Publisher
πŸ“ˆ
85%
Success Rate