Convert Python for -loop to PHP
<p><strong>How can you convert the following code to PHP?</strong></p>

<pre><code>summat = [sum(arra[i:i+4]) for i in range(0,len(arra),4)]
</code></pre>

<p>My attempt</p>

<pre><code>$summat = array()
foreach ( range(0, $arra.length, 4) as $i) {
        $summat = array ( array_sum( array_slice( $array, $i, $i+5) ) )   // don't know how to append the sums the array
</code></pre>
