0
What's b value
$a=2 ; $b=$a++; Guys what is the answer of b
4 odpowiedzi
+ 1
That is because of post increment.
Value of $a will be stored in $b and then it will increment.
But if you use pre increment then it's a different story.
Try this :
$a = 2;
$b = ++$a;
echo $b;
0
But b answer show 2 ....how 🤔
0
Sir answer 3 ...
0
Sir variable declare after the addition do not do it