<?php
$a = 0;
$b = $a++;
$c = ++$a;
var_dump ($a, $b, $c, $b + $c);

//https://pt.stackoverflow.com/q/226847/101