Is there a better/shorter way in PHP of doing
$x = $x + 10;
i.e.
something like
$x .= 10; // (but this doesn\'t add
Have a look at: http://php.net/manual/language.operators.assignment.php (in the code examples and comments)
You can use:
$x += 10;
for example.
You are looking for this:
Not a PHP guy, but $x += 10; maybe?