How to convert an array to a different format?
<p>Hi 
i want to convert this array where id as key and  name value pair </p>

<pre><code>Array(
    [4882] =&gt; treatment
    [4876] =&gt; Advance
    [4854] =&gt; Applied Clinical
)
</code></pre>

<p>to </p>

<pre><code>Array(
    [0] =&gt; Array([id] =&gt; 4882, [name] =&gt; treatment)
    [1] =&gt; Array([id] =&gt; 4876, [name] =&gt; Advance)
    [2] =&gt; Array([id] =&gt; 4854, [name] =&gt; Applied Clinical)
)
</code></pre>
