convert object to array
<pre><code>&lt;?php

   print_r($response-&gt;response-&gt;docs);

?&gt;
</code></pre>

<p>display the following</p>

<pre><code>Array ( [0] =&gt; Object ( [_fields:private] =&gt; Array ( [id]=&gt;9093 [name]=&gt;zahir) Object ( [_fields:private] =&gt; Array ( [id]=&gt;9094 [name]=&gt;hussain)..)
</code></pre>

<p>how to change the object to array...</p>

<p>i want the following</p>

<pre><code>Array([0]=&gt;([id]=&gt;9093 [name]=&gt;zahir) [1]=&gt;([id]=&gt;9094 [name]=&gt;hussain)...)
</code></pre>

<p>can i do?</p>

<p>no one can answer....</p>
