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;
?>
β
Correct Answer: (D)
True10