laserlight;10963037 wrote:Observe that you used post-increment, so the result of the expression is the original value, not the incremented value.
So what do you think i should do to get the desired output?
I mean i don't want to use the following code
<?php
$x=10;
echo $x+1;
?>
Note: I am new to php and today's my second day of learning it, and the only computer languages i know are html, css & java script. Although i am out of practice for about 3 years.