Is there any php function fill an array with string values?
<pre><code>$a = array_fill(5, 6, 'banana');
</code></pre>

<p>prints</p>

<pre><code>Array
(
    [5]  =&gt; banana
    [6]  =&gt; banana
    [7]  =&gt; banana
    [8]  =&gt; banana
    [9]  =&gt; banana
    [10] =&gt; banana
)
</code></pre>

<p>But i wanted it something like below </p>

<pre><code>Array
(
    [5]  =&gt; banana 1
    [6]  =&gt; banana 2
    [7]  =&gt; banana 3
    [8]  =&gt; banana 4
    [9]  =&gt; banana 5
    [10] =&gt; banana 6
)
</code></pre>

<p>Is there any other php function there to achieve above? If yes, could you please let me know. Thank you a lot! :)</p>
