$a++ VS ++$a?

Can you guys explain to me the difference

thanks in advance.

Try this:

http://php.net/manual/en/language.operators.increment.php

2 Likes

To test your newly acquired knowledge, answer the simple test: what would be the result of that simple code

$i = 5;
$i = ++$i + ++$i;
echo $i;

:eek:

4 Likes

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.