I'm follow an tutorial on sololearn website, and one of the section is operator. I came across this question that is very confusing to me.
Question:
What is the result for $b?
$a=2;
$b= $a++;
I think it is three. Because $a = 2, and $b = 2+1. 2 + 1 = 3. But it says the answer is 2.
Any explainnation will be excepted.