PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
that's correct.. $var++ is post-increment.. meaning, after execution (returning current state), the variable is incremented. ++$var is pre-increment, as you are expecting.