How to calculate the sum of values in a list PHP
<p>I have a variable list.</p>

<pre><code>echo $variable; // shows 1 5 7 8
</code></pre>

<ol>
<li>How can I calculate the sum of these numbers?</li>
<li>How can I convert this list into an array?</li>
</ol>
