A
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--;
?>
$p = 20; $q = 20;
if ($p = 12)
$q--;
echo $p;
echo $q--;
?>
- Correct Answer - Option(D)
- Views: 20
- Filed under category PHP
- Hashtags:
Discusssion
Login to discuss.