PHP Loop 1 to 10
<p>I need to make a loop in php that does 1 + 2 + 3 + 4 .... + 10 = 55 but icant get it to work. I did this:</p>

<pre><code>&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
    &lt;title&gt;&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;?php 
        for ($i = 1; $i &lt;= 10; $i++){
            $sul = $i + $i + $i + $i + $i + $i + $i + $i + $i + $i;
            echo "$i + $i + $i + $i + $i + $i + $i + $i + $i + $i = $sul&lt;br&gt;";

        };

    ?&gt;
&lt;/body&gt;
</code></pre>

<p>Hope you can help me thanks :)
    </p>