PHP create a range of sequential rows
<p>How can I modify this code for the second array's values to start with "value 4" and end with "value 6"? Basically the first parameter of range() should be dynamic but I'm not sure if that's possible?</p>

<pre><code>for($i = 1; $i &lt;= 2; $i++)
{
    $rows[] = array_map(function($n) {
        return "value " . $n;
        }, range(1, 3));
}
</code></pre>

<p><code>print_r($rows)</code> should be</p>

<pre><code>Array
(
    [0] =&gt; Array
        (
            [0] =&gt; value 1
            [1] =&gt; value 2
            [2] =&gt; value 3
        )

    [1] =&gt; Array
        (
            [0] =&gt; value 4
            [1] =&gt; value 5
            [2] =&gt; value 6
        )

)
</code></pre>
