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--;
?>
β
Correct Answer: (D)
1219
<?php
$p = 20; $q = 20;
if ($p = 12)
$q--;
echo $p;
echo $q--;
?>
You must be Logged in to update hint/solution