Shortest PHP code for $i = $i + $x;
<p>Im trying to learn a few shorter ways of doing things in php</p>

<p>Is there a shorter way of adding a number to a variable</p>

<p>in this case the code i want to shorten is: <code>$num = $num + rand(1000, 100);</code></p>

<p>eg: </p>

<pre><code>$num = 0;
        $count = 10;
        $i = 0;

        while ($i &lt; $count) {
            $num = $num + rand(1000, 100);
            echo"$num&lt;br/&gt;";
            $i++;
        }
</code></pre>
