Alex Rivera | Logout

Better way to add number to itself?

Asked 2011-06-27T16:21:33.000
21

Is there a better/shorter way in PHP of doing

$x = $x + 10;

i.e.

something like

$x .= 10; // (but this doesn't add together)

I am sure i've seen a shorter way than doing $x = $x + 10;

Edit
Report

1 Answer

4
$x+=10;

Is this what you're wanting?

answered 2011-06-27T16:23:01.433

Your Answer