PHP Operators
- What will be the output of the following PHP code ?
<?php
$p = 3;
$q = 4;
$r = $p++ + ++$q;
echo $r;
?>
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
Post increment of p is done after expression evaluation.