A
Q. What will be the output of the following PHP code ?
Code:
<?php
$p = 2; $q = 2; $r = 2;
echo ++$p + ++$p+$p++; print $p++ + ++$q; print ++$r + $r++ + $p++;
?>
$p = 2; $q = 2; $r = 2;
echo ++$p + ++$p+$p++; print $p++ + ++$q; print ++$r + $r++ + $p++;
?>
- Correct Answer - Option(B)
- Views: 28
- Filed under category PHP
- Hashtags:
Discusssion
Login to discuss.