How to set array of array in single array in php : <p>Following is my array</p>

<pre><code>Array
(
    [0] =&gt; Array
        (
            [1] =&gt; Beanie
        )

    [1] =&gt; Array
        (
            [2] =&gt; Cap
        )

    [2] =&gt; Array
        (
            [1] =&gt; Beanie with Logo
        )

)
</code></pre>

<p>I want this into a single array like set key and value of array.</p>

<pre><code>array(
    [1]=&gt;Beanie,
    [2]=&gt;Cap,
    [1]=&gt;Beanie with Logo,
)
</code></pre>
