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

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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