Discussion :: PHP - CS
-
What will be the output of the following PHP code ?
<?php
$a = 10;
echo ++$a;
echo $a++;
echo $a;
echo ++$a;
?>
Answer : Option A
Explanation :
++$a increments a and then prints it,$a++ prints and then increments.
Be The First To Comment