πŸ“Š PHP
Q. What will be the output of the following PHP code ?
Code:
<?php
$p = 2; $q = 2; $r = 2;
echo ++$p + ++$p+$p++; print $p++ + ++$q; print ++$r + $r++ + $p++;
?>
  • (A) Nothing
  • (B) 11812
  • (C) 12811
  • (D) Error
πŸ’¬ Discuss
βœ… Correct Answer: (B) 11812

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
48287
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Babita
Publisher
πŸ“ˆ
80%
Success Rate