Q. What will be the output of the following PHP code ?
Code:
<?php $p = 12; echo ++$p; echo $p++; echo $p; echo ++$p; ?>
β
Correct Answer: (D)
13131415
Explanation: ++$p increments a and then prints it,$p++ prints and then increments.