πŸ“Š PHP
Q. What will be the output of the following PHP code ?
Code:
<?php
$p = 20;
$q = 10;
if ($p || ($q = $p + 10)) {
    echo "True";
}
echo $q;
?>
  • (A) 10
  • (B) 20
  • (C) 10True
  • (D) True10
πŸ’¬ Discuss
βœ… Correct Answer: (D) True10

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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