+ 2
Discuss: What is the Output and why?
Simple PHP Converting & Typecasting : Do you know the output without executing this Code? If so, explain why. Here we go: <?php $a = "a"; $b = "b"; $c = "c"; $a = $a + 1; $b = $b++; $c = ++$c; echo $a; echo $b; echo $c; ?>
1 Réponse
+ 1
I have to admit, I'm very surprised. Expected some different output.
That's why I'm always double checking with echos a lot 😌